Created
July 29, 2020 10:47
-
-
Save tudoanh/d2a2b87e7b0fcc64e2637e926df7dd44 to your computer and use it in GitHub Desktop.
I3 config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
exec_always --no-startup-id dunst -config ~/.config/dunst/dunstrc | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
font pango:System San Francisco Display 11 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec i3-sensible-terminal | |
# kill focused window | |
bindsym $mod+Shift+q kill | |
# change focus | |
bindsym $mod+j focus left | |
bindsym $mod+k focus down | |
bindsym $mod+l focus up | |
bindsym $mod+semicolon focus right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Left focus left | |
bindsym $mod+Down focus down | |
bindsym $mod+Up focus up | |
bindsym $mod+Right focus right | |
# move focused window | |
bindsym $mod+Shift+j move left | |
bindsym $mod+Shift+k move down | |
bindsym $mod+Shift+l move up | |
bindsym $mod+Shift+semicolon move right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Shift+Left move left | |
bindsym $mod+Shift+Down move down | |
bindsym $mod+Shift+Up move up | |
bindsym $mod+Shift+Right move right | |
# split in horizontal orientation | |
bindsym $mod+h split h | |
# split in vertical orientation | |
bindsym $mod+v split v | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen toggle | |
# change container layout (stacked, tabbed, toggle split) | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+e layout toggle split | |
# toggle tiling / floating | |
bindsym $mod+Shift+space floating toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
set $ws1 "1: " | |
set $ws2 "2: " | |
set $ws3 "3: " | |
set $ws4 "4: " | |
set $ws5 "5: " | |
set $ws6 "6: " | |
# switch to workspace | |
bindsym $mod+1 workspace $ws1 | |
bindsym $mod+2 workspace $ws2 | |
bindsym $mod+3 workspace $ws3 | |
bindsym $mod+4 workspace $ws4 | |
bindsym $mod+5 workspace $ws5 | |
bindsym $mod+6 workspace $ws6 | |
bindsym $mod+7 workspace 7 | |
bindsym $mod+8 workspace 8 | |
bindsym $mod+9 workspace 9 | |
bindsym $mod+0 workspace 10 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace $ws1 | |
bindsym $mod+Shift+2 move container to workspace $ws2 | |
bindsym $mod+Shift+3 move container to workspace $ws3 | |
bindsym $mod+Shift+4 move container to workspace $ws4 | |
bindsym $mod+Shift+5 move container to workspace $ws5 | |
bindsym $mod+Shift+6 move container to workspace $ws6 | |
bindsym $mod+Shift+7 move container to workspace 7 | |
bindsym $mod+Shift+8 move container to workspace 8 | |
bindsym $mod+Shift+9 move container to workspace 9 | |
bindsym $mod+Shift+0 move container to workspace 10 | |
# assign [class="Google-chrome"] $ws2 | |
# assign [class="Thunar"] $ws4 | |
# assign [class="telegram-desktop"] $ws5 | |
hide_edge_borders both | |
# reload the configuration file | |
bindsym $mod+Shift+c reload | |
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | |
bindsym $mod+Shift+r restart | |
# exit i3 (logs you out of your X session) | |
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" | |
# resize window (you can also use the mouse for that) | |
mode "resize" { | |
# These bindings trigger as soon as you enter the resize mode | |
# Pressing left will shrink the window’s width. | |
# Pressing right will grow the window’s width. | |
# Pressing up will shrink the window’s height. | |
# Pressing down will grow the window’s height. | |
bindsym j resize shrink width 10 px or 10 ppt | |
bindsym k resize grow height 10 px or 10 ppt | |
bindsym l resize shrink height 10 px or 10 ppt | |
bindsym semicolon resize grow width 10 px or 10 ppt | |
# same bindings, but for the arrow keys | |
bindsym Left resize shrink width 10 px or 10 ppt | |
bindsym Down resize grow height 10 px or 10 ppt | |
bindsym Up resize shrink height 10 px or 10 ppt | |
bindsym Right resize grow width 10 px or 10 ppt | |
# back to normal: Enter or Escape | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
set $bg-color #2f343f | |
set $inactive-bg-color #2f343f | |
set $text-color #f3f4f5 | |
set $inactive-text-color #676E7D | |
set $urgent-bg-color #E53935 | |
# window colors | |
# border background text indicator | |
client.focused $bg-color $bg-color $text-color #00ff00 | |
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00 | |
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00 | |
client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00 | |
# Start i3bar to display a workspace bar (plus the system information i3status | |
# finds out, if available) | |
bar { | |
position bottom | |
status_command i3blocks # -c /home/james/.i3blocks.conf | |
# status_command i3blocks -c /home/booker/.i3/i3blocks.conf | |
colors { | |
background $bg-color | |
separator #757575 | |
# border background text | |
focused_workspace $bg-color $bg-color $text-color | |
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color | |
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color | |
} | |
} | |
# start dmenu (a program launcher) | |
bindsym $mod+d exec rofi -show drun | |
# Pulse Audio controls | |
# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume | |
# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume | |
# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
# Sreen brightness controls | |
# bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness | |
# bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness | |
# Touchpad controls | |
# bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad | |
# Media player controls | |
# bindsym XF86AudioPlay exec playerctl play | |
# bindsym XF86AudioPause exec playerctl pause | |
# bindsym XF86AudioNext exec playerctl next | |
# bindsym XF86AudioPrev exec playerctl previous | |
bindsym Print exec scrot -q 90 -e 'mv $f ~/Pictures' | |
bindsym $mod+Control+l exec i3lock -i /home/james/Pictures/wallpaper.png | |
exec_always --no-startup-id compton -f | |
exec_always feh --bg-scale /home/james/Pictures/wallpaper.jpg | |
# exec_always --no-startup-id nm-applet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration { | |
modi: "run"; | |
width: 100; | |
lines: 5; | |
/* columns: 1;*/ | |
font: "System San Francisco Display 11"; | |
/* bw: 1;*/ | |
/* location: 0;*/ | |
padding: 470; | |
/* yoffset: 0;*/ | |
/* xoffset: 0;*/ | |
/* fixed-num-lines: true;*/ | |
/* show-icons: false;*/ | |
/* terminal: "rofi-sensible-terminal";*/ | |
/* ssh-client: "ssh";*/ | |
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/ | |
/* run-command: "{cmd}";*/ | |
/* run-list-command: "";*/ | |
/* run-shell-command: "{terminal} -e {cmd}";*/ | |
/* window-command: "wmctrl -i -R {window}";*/ | |
/* window-match-fields: "all";*/ | |
/* icon-theme: ;*/ | |
/* drun-match-fields: "name,generic,exec,categories";*/ | |
/* drun-show-actions: false;*/ | |
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/ | |
/* disable-history: false;*/ | |
/* ignored-prefixes: "";*/ | |
/* sort: false;*/ | |
/* sorting-method: ;*/ | |
/* case-sensitive: false;*/ | |
/* cycle: true;*/ | |
/* sidebar-mode: false;*/ | |
/* eh: 1;*/ | |
/* auto-select: false;*/ | |
/* parse-hosts: false;*/ | |
/* parse-known-hosts: true;*/ | |
/* combi-modi: "window,run";*/ | |
/* matching: "normal";*/ | |
/* tokenize: true;*/ | |
/* m: "-5";*/ | |
/* line-margin: 2;*/ | |
/* line-padding: 1;*/ | |
/* filter: ;*/ | |
/* separator-style: "dash";*/ | |
/* hide-scrollbar: false;*/ | |
/* fullscreen: false;*/ | |
/* fake-transparency: false;*/ | |
/* dpi: -1;*/ | |
/* threads: 0;*/ | |
/* scrollbar-width: 8;*/ | |
/* scroll-method: 0;*/ | |
/* fake-background: "screenshot";*/ | |
/* window-format: "{w} {c} {t}";*/ | |
/* click-to-exit: true;*/ | |
/* show-match: true;*/ | |
theme: "arc_red_dark"; | |
/* color-normal: ;*/ | |
/* color-urgent: ;*/ | |
/* color-active: ;*/ | |
/* color-window: ;*/ | |
/* max-history-size: 25;*/ | |
/* combi-hide-mode-prefix: false;*/ | |
/* matching-negate-char: '-' /* unsupported */;*/ | |
/* cache-dir: ;*/ | |
/* pid: "/run/user/1000/rofi.pid";*/ | |
/* display-window: ;*/ | |
/* display-windowcd: ;*/ | |
/* display-run: ;*/ | |
/* display-ssh: ;*/ | |
/* display-drun: ;*/ | |
/* display-combi: ;*/ | |
/* display-keys: ;*/ | |
/* kb-primary-paste: "Control+V,Shift+Insert";*/ | |
/* kb-secondary-paste: "Control+v,Insert";*/ | |
/* kb-clear-line: "Control+w";*/ | |
/* kb-move-front: "Control+a";*/ | |
/* kb-move-end: "Control+e";*/ | |
/* kb-move-word-back: "Alt+b,Control+Left";*/ | |
/* kb-move-word-forward: "Alt+f,Control+Right";*/ | |
/* kb-move-char-back: "Left,Control+b";*/ | |
/* kb-move-char-forward: "Right,Control+f";*/ | |
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/ | |
/* kb-remove-word-forward: "Control+Alt+d";*/ | |
/* kb-remove-char-forward: "Delete,Control+d";*/ | |
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/ | |
/* kb-remove-to-eol: "Control+k";*/ | |
/* kb-remove-to-sol: "Control+u";*/ | |
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/ | |
/* kb-accept-custom: "Control+Return";*/ | |
/* kb-accept-alt: "Shift+Return";*/ | |
/* kb-delete-entry: "Shift+Delete";*/ | |
/* kb-mode-next: "Shift+Right,Control+Tab";*/ | |
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/ | |
/* kb-row-left: "Control+Page_Up";*/ | |
/* kb-row-right: "Control+Page_Down";*/ | |
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/ | |
/* kb-row-down: "Down,Control+n";*/ | |
/* kb-row-tab: "Tab";*/ | |
/* kb-page-prev: "Page_Up";*/ | |
/* kb-page-next: "Page_Down";*/ | |
/* kb-row-first: "Home,KP_Home";*/ | |
/* kb-row-last: "End,KP_End";*/ | |
/* kb-row-select: "Control+space";*/ | |
/* kb-screenshot: "Alt+S";*/ | |
/* kb-ellipsize: "Alt+period";*/ | |
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/ | |
/* kb-toggle-sort: "Alt+grave";*/ | |
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/ | |
/* kb-custom-1: "Alt+1";*/ | |
/* kb-custom-2: "Alt+2";*/ | |
/* kb-custom-3: "Alt+3";*/ | |
/* kb-custom-4: "Alt+4";*/ | |
/* kb-custom-5: "Alt+5";*/ | |
/* kb-custom-6: "Alt+6";*/ | |
/* kb-custom-7: "Alt+7";*/ | |
/* kb-custom-8: "Alt+8";*/ | |
/* kb-custom-9: "Alt+9";*/ | |
/* kb-custom-10: "Alt+0";*/ | |
/* kb-custom-11: "Alt+exclam";*/ | |
/* kb-custom-12: "Alt+at";*/ | |
/* kb-custom-13: "Alt+numbersign";*/ | |
/* kb-custom-14: "Alt+dollar";*/ | |
/* kb-custom-15: "Alt+percent";*/ | |
/* kb-custom-16: "Alt+dead_circumflex";*/ | |
/* kb-custom-17: "Alt+ampersand";*/ | |
/* kb-custom-18: "Alt+asterisk";*/ | |
/* kb-custom-19: "Alt+parenleft";*/ | |
/* kb-select-1: "Super+1";*/ | |
/* kb-select-2: "Super+2";*/ | |
/* kb-select-3: "Super+3";*/ | |
/* kb-select-4: "Super+4";*/ | |
/* kb-select-5: "Super+5";*/ | |
/* kb-select-6: "Super+6";*/ | |
/* kb-select-7: "Super+7";*/ | |
/* kb-select-8: "Super+8";*/ | |
/* kb-select-9: "Super+9";*/ | |
/* kb-select-10: "Super+0";*/ | |
/* ml-row-left: "ScrollLeft";*/ | |
/* ml-row-right: "ScrollRight";*/ | |
/* ml-row-up: "ScrollUp";*/ | |
/* ml-row-down: "ScrollDown";*/ | |
/* me-select-entry: "MousePrimary";*/ | |
/* me-accept-entry: "MouseDPrimary";*/ | |
/* me-accept-custom: "Control+MouseDPrimary";*/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
font = Envy Code R 10 | |
# allow a small subset of html markup: | |
# <b>bold</b> | |
# <i>italic</i> | |
# <s>strikethrough<s/> | |
# <u>underline</u> | |
# ~/.config/dunst/dunstrc | |
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html | |
# If markup is not allowed, those tags will be stripped out of the message. | |
allow_markup = yes | |
# The format of the message. Possible variables are: | |
# %a appname | |
# %s summary | |
# %b body | |
# %i iconname (including its path) | |
# %I iconname (without its path) | |
# %p progress value if set ([ 0%] to [100%]) or nothing | |
# Markup is allowed | |
format = "<b>%s</b>\n%b" | |
# Sort messages by urgency | |
sort = yes | |
# Show how many messages are currently hidden (because of geometry) | |
indicate_hidden = yes | |
# alignment of message text. | |
# Possible values are "left", "center" and "right" | |
alignment = left | |
# The frequency with wich text that is longer than the notification | |
# window allows bounces back and forth. | |
# This option conflicts with 'word_wrap'. | |
# Set to 0 to disable | |
bounce_freq = 0 | |
# show age of message if message is older than show_age_threshold seconds. | |
# set to -1 to disable | |
show_age_threshold = 60 | |
# split notifications into multiple lines if they don't fit into geometry | |
word_wrap = yes | |
# ignore newlines '\n' in notifications | |
ignore_newline = no | |
# the geometry of the window | |
# geometry [{width}]x{height}][+/-{x}+/-{y}] | |
# The geometry of the message window. | |
# The height is measured in number of notifications everything else in pixels. If the width | |
# is omitted but the height is given ("-geometry x2"), the message window | |
# expands over the whole screen (dmenu-like). If width is 0, | |
# the window expands to the longest message displayed. | |
# A positive x is measured from the left, a negative from the | |
# right side of the screen. Y is measured from the top and down respectevly. | |
# The width can be negative. In this case the actual width is the | |
# screen width minus the width defined in within the geometry option. | |
geometry = "300x5-30+20" | |
# The transparency of the window. range: [0; 100] | |
# This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..) | |
transparency = 0 | |
# Don't remove messages, if the user is idle (no mouse or keyboard input) | |
# for longer than idle_threshold seconds. | |
# Set to 0 to disable. | |
idle_threshold = 120 | |
# Which monitor should the notifications be displayed on. | |
monitor = 1 | |
# Display notification on focused monitor. Possible modes are: | |
# mouse: follow mouse pointer | |
# keyboard: follow window with keyboard focus | |
# none: don't follow anything | |
# | |
# "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property. | |
# This should be the case for almost all modern windowmanagers. | |
# | |
# If this option is set to mouse or keyboard, the monitor option will be | |
# ignored. | |
follow = none | |
# should a notification popped up from history be sticky or | |
# timeout as if it would normally do. | |
sticky_history = yes | |
# The height of a single line. If the height is smaller than the font height, | |
# it will get raised to the font height. | |
# This adds empty space above and under the text. | |
line_height = 0 | |
# Draw a line of 'separatpr_height' pixel height between two notifications. | |
# Set to 0 to disable | |
separator_height = 2 | |
# padding between text and separator | |
padding = 8 | |
# horizontal padding | |
horizontal_padding = 8 | |
# Define a color for the separator. | |
# possible values are: | |
# * auto: dunst tries to find a color fitting to the background | |
# * foreground: use the same color as the foreground | |
# * frame: use the same color as the frame. | |
# * anything else will be interpreted as a X color | |
separator_color = auto | |
# print a notification on startup | |
# This is mainly for error detection, since dbus (re-)starts dunst | |
# automatically after a crash. | |
startup_notification = true | |
# dmenu path | |
dmenu = ~/i3dmenu.sh -p dunst: | |
# browser for opening urls in context menu | |
browser = /usr/bin/firefox -new-tab | |
[frame] | |
width = 3 | |
color = "#20adc3" | |
[shortcuts] | |
# shortcuts are specified as [modifier+][modifier+]...key | |
# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3' | |
# and 'mod4' (windows-key) | |
# xev might be helpful to find names for keys | |
# close notification | |
close = ctrl+space | |
# close all notifications | |
close_all = ctrl+shift+space | |
# redisplay last message(s) | |
# On the US keyboard layout 'grave' is normally above TAB and left of '1'. | |
history = ctrl+grave | |
# context menu | |
context = ctrl+shift+period | |
[urgency_low] | |
# IMPORTANT: colors have to be defined in quotation marks. | |
# Otherwise the "#" and following would be interpreted as a comment. | |
background = "#222222" | |
foreground = "#888888" | |
timeout = 10 | |
# Icon for notifications with low urgency, uncomment to enable | |
#icon = /path/to/icon | |
[urgency_normal] | |
background = "#285577" | |
foreground = "#ffffff" | |
timeout = 10 | |
# Icon for notifications with normal urgency, uncomment to enable | |
#icon = /path/to/icon | |
[urgency_critical] | |
background = "#900000" | |
foreground = "#ffffff" | |
frame_color = "#ff0000" | |
timeout = 0 | |
# Icon for notifications with critical urgency, uncomment to enable | |
#icon = /path/to/icon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment