Skip to content

Instantly share code, notes, and snippets.

@alienbogart
Created June 1, 2019 16:52
Show Gist options
  • Select an option

  • Save alienbogart/a21b9fe06a308db1c91c1ea8a9ba2d9c to your computer and use it in GitHub Desktop.

Select an option

Save alienbogart/a21b9fe06a308db1c91c1ea8a9ba2d9c to your computer and use it in GitHub Desktop.
floating_modifier $mod
font xft:URWGothic-Book 11
new_window normal
new_float normal
hide_edge_borders none
set $mod Mod4
set $alt Mod1
show_marks yes
focus_follows_mouse yes
popup_during_fullscreen ignore
focus_on_window_activation focus
force_display_urgency_hint 150 ms
workspace_auto_back_and_forth yes
exec --no-startup-id i3-msg workspace 1
set $Locker i3lock --show-failed-attempts --color=#000000 && sleep 1
# bindsym $mod+BackSpace exec --no-startup-id $Locker; mode "default"
bindsym $mod+BackSpace mode "$restricted"
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
# i3bar
bar {
i3bar_command i3bar
# status_command i3status
position bottom
# my configs
mode hide
modifier none
binding_mode_indicator no
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
# tray_output primary
# tray_output eDP1
bindsym button4 nop
bindsym button5 nop
# font xft:URWGothic-Book 11
strip_workspace_numbers yes
colors {
background #222D31
statusline #F9FAF9
separator #454947
# border backgr. text
focused_workspace #F9FAF9 #16a085 #292F34
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #222D31 #EEE8D5
binding_mode #16a085 #2C2C2C #F9FAF9
urgent_workspace #16a085 #FDF6E3 #E5201D
}
}
# hide/unhide i3status bar
bindsym $mod+m bar mode toggle
exec_always --no-startup-id ff-theme-util
exec_always --no-startup-id fix_xcursor
# Color for the terminal ( ~/.Xresources file )
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0
set_from_resource $term_color1 color1
set_from_resource $term_color2 color2
set_from_resource $term_color3 color3
set_from_resource $term_color4 color4
set_from_resource $term_color5 color5
set_from_resource $term_color6 color6
set_from_resource $term_color7 color7
set_from_resource $term_color8 color8
set_from_resource $term_color9 color9
set_from_resource $term_color10 color10
set_from_resource $term_color11 color11
set_from_resource $term_color12 color12
set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# Theme colors
# class border backgr. text indic. child_border
client.focused #2F3D44 #2F3D44 #1ABC9C #454948
client.focused_inactive #556064 #556064 #80FFF9 #FDF6E3
client.unfocused #556064 #556064 #80FFF9 #FDF6E3
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
client.placeholder #000000 #0c0c0c #ffffff #000000
client.background #2B2C2B
# #############################
# ### settings for i3-gaps: ###
# #############################
# # Set inner/outer gaps
# # gaps inner 14
# # gaps outer -2
# gaps inner 8
# gaps outer -2
# # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# # gaps inner|outer current|all set|plus|minus <px>
# # gaps inner all set 10
# # gaps outer all plus 5
# # Smart gaps (gaps used if only more than one container on the workspace)
# smart_gaps on
# # Smart borders (draw borders around container only if it is not the only container on this workspace)
# # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
# smart_borders on
# # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
# set $mode_gaps Gaps: (o) outer, (i) inner
# set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
# set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
# bindsym $mod+Shift+g mode "$mode_gaps"
# mode "$mode_gaps" {
# bindsym o mode "$mode_gaps_outer"
# bindsym i mode "$mode_gaps_inner"
# bindsym Return mode "default"
# bindsym Escape mode "default"
# }
# mode "$mode_gaps_inner" {
# bindsym plus gaps inner current plus 5
# bindsym minus gaps inner current minus 5
# bindsym 0 gaps inner current set 0
# bindsym Shift+plus gaps inner all plus 5
# bindsym Shift+minus gaps inner all minus 5
# bindsym Shift+0 gaps inner all set 0
# bindsym Return mode "default"
# bindsym Escape mode "default"
# }
# mode "$mode_gaps_outer" {
# bindsym plus gaps outer current plus 5
# bindsym minus gaps outer current minus 5
# bindsym 0 gaps outer current set 0
# bindsym Shift+plus gaps outer all plus 5
# bindsym Shift+minus gaps outer all minus 5
# bindsym Shift+0 gaps outer all set 0
# bindsym Return mode "default"
# bindsym Escape mode "default"
# }
exec "emacsclient --socket-name=gui-emacs --no-wait --create-frame"
exec --no-startup-id nm-applet
exec --no-startup-id volumeicon
# exec --no-startup-id xautolock -time 20 -locker blurlock
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id pa-applet
exec --no-startup-id pulseaudio
exec --no-startup-id redshift
exec --no-startup-id nm-applet
exec --no-startup-id "xset mouse 10/5 0"
exec --no-startup-id "~/scripts/screen/mx-big.sh"
exec --no-startup-id "~/scripts/i3_scripts/scratch.sh"
exec --no-startup-id "~/scripts/keyboard/init_keys.sh"
exec --no-startup-id "unclutter -display :0.0 -idle 2"
exec --no-startup-id synclient TapButton1=1 TouchpadOff=0 PalmDetect=1
exec --no-startup-id "sleep 10 && feh --recursive --randomize --bg-fill ~/Pictures/Wallpaper/Abstract/allblack.png"
### MANJARO ####
# Start Applications
bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
bindsym $mod+k focus Up
bindsym $mod+Up focus Up
bindsym $mod+Tab focus Up
bindsym $mod+h focus Left
bindsym $mod+Left focus Left
bindsym $mod+j focus Down
bindsym $mod+Down focus Down
bindsym $mod+l focus Right
bindsym $mod+Escape focus Right
bindsym $mod+Right focus Right
bindsym $mod+space focus mode_toggle
bindsym $mod+$alt+h focus output Left
bindsym $mod+$alt+l focus output Right
bindsym $alt+Shift+c focus child;exec notify-send 'parent focus'
bindsym $alt+Shift+p focus parent;exec notify-send 'parent focus'
bindsym $mod+Shift+F5 exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Yes' 'i3-msg exit'"
# bindsym $mod+F5 exec --no-startup-id xautolock
bindsym $mod+F5 exec --no-startup-id $Locker
bindcode 107 exec xfce4-screenshooter -r
bindcode $mod+107 exec "~/scripts/cline_scripts/screenshotfull"
bindsym --release $mod+Shift+q exec xkill
bindsym $mod+d exec dmenu_run -i -l 5 -fn 'Input Mono-13'
bindsym $mod+q kill
bindsym $mod+Return exec xfce4-terminal
bindsym $mod+z exec --no-startup-id morc_menu
# bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym $mod+Shift+k move Up
bindsym $mod+Shift+h move Left
bindsym $mod+Shift+j move Down
bindsym $mod+Shift+l move Right
bindsym $mod+Shift+Up move Up
bindsym $mod+Shift+Left move Left
bindsym $mod+Shift+Down move Down
bindsym $mod+Shift+Right move Right
bindsym $mod+f fullscreen toggle
default_orientation vertical
workspace_layout stacking
bindsym $mod+s layout stacking; exec notify-send --expire-time=1000 'stacked'
bindsym $mod+x layout toggle all
bindsym $mod+v split v;exec notify-send --expire-time=1000 'tile vertically'
bindsym $mod+Control+o split h;exec notify-send --expire-time=1000 'tile horizontally'
# bindsym $mod+Shift+space floating toggle
mode "$restricted" {
bindsym Escape exec notify-send --expire-time=1000 'default'; mode default
}
bindsym Menu mode "$launch"
mode "$launch" {
bindsym $mod+Menu mode default
bindsym t exec pcmanfm; mode default
bindsym p exec pavulcontrol; mode default
bindsym Menu exec rofi -show run; mode default
bindsym z exec google-chrome-stable; mode default
bindsym g exec "~/scripts/emacs_scripts/org-agenda"; mode default
bindsym e exec "~/scripts/emacs_scripts/new-i3"; mode default
bindsym o exec "~/scripts/cline_scripts/the-office"; mode default
bindsym Shift+w exec feh --recursive --randomize --bg-fill ~/Pictures/Wallpaper; mode default
bindsym Shift+1 exec "~/scripts/i3_scripts/mouse-slow"; exec notify-send --expire-time=2000 'mouse slow'; mode default
bindsym Shift+2 exec "~/scripts/i3_scripts/mouse-default"; exec notify-send --expire-time=2000 'mouse default'; mode default
bindsym Shift+3 exec "~/scripts/i3_scripts/mouse-fast"; exec notify-send --expire-time=2000 'mouse fast'; mode default
bindsym Shift+4 exec "~/scripts/i3_scripts/mouse-faster"; exec notify-send --expire-time=2000 'mouse faster'; mode default
bindsym Shift+5 exec "~/scripts/i3_scripts/mouse-fastest"; exec notify-send --expire-time=2000 'mouse fastet'; mode default
bindsym Escape exec notify-send --expire-time=1 'default'; mode default
}
bindsym $mod+apostrophe exec notify-send 'tilling'; mode "$tilling_mode"
mode "$tilling_mode" {
bindsym $mod+h move Left
bindsym $mod+j move Down
bindsym $mod+k move Up
bindsym $mod+l move Right
bindsym Left focus Left
bindsym Down focus Down
bindsym Up focus Up
bindsym Right focus Right
bindsym Shift+h resize shrink Left 10 px or 10 ppt
bindsym h resize grow Left 10 px or 10 ppt
bindsym Shift+j resize shrink height 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym Shift+k resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym Shift+l resize shrink width 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym $mod+apostrophe exec notify-send 'float'; mode "$float_mode"
bindsym Escape mode default
}
mode "$tilling_small_steps" {
bindsym $mod+h move Left
bindsym $mod+j move Down
bindsym $mod+k move Up bindsym $mod+l move Right
bindsym Left focus Left
bindsym Down focus Down
bindsym Up focus Up
bindsym Right focus Right
bindsym Shift+h resize shrink Left 3 px or 3 ppt
bindsym h resize grow Left 3 px or 3 ppt
bindsym Shift+j resize shrink height 3 px or 3 ppt
bindsym j resize grow height 3 px or 3 ppt
bindsym Shift+k resize shrink height 3 px or 3 ppt
bindsym k resize grow height 3 px or 3 ppt
bindsym Shift+l resize shrink width 3 px or 3 ppt
bindsym l resize grow width 3 px or 3 ppt
bindsym apostrophe mode "$float_mode"
bindsym $mod+apostrophe exec notify-send 'float small'; mode "$float_small_steps"
bindsym Escape mode default
}
bindsym $mod+Control+space floating enable; mode "$float_mode"
bindsym $mod+Shift+space floating toggle
mode "$float_mode" {
bindsym h resize shrink Right 100px or 100ppt
bindsym l resize grow Right 100px or 100ppt
bindsym j resize grow Down 100px or 100ppt
bindsym k resize shrink Down 100px or 100ppt
bindsym Control+h resize shrink Right 80px or 80ppt
bindsym Control+l resize grow Right 80px or 80ppt
bindsym Control+j resize grow Down 80px or 80ppt
bindsym Control+k resize shrink Down 80px or 80ppt
bindsym $alt+h move Left 250px
bindsym $alt+l move Right 250px
bindsym $alt+u move Up 250px
bindsym $alt+j move Down 250px
bindsym $alt+Shift+h move Left 100px
bindsym $alt+Shift+l move Right 100px
bindsym $alt+Shift+k move Up 100px
bindsym $alt+Shift+u move Down 100px
bindsym $mod+apostrophe exec notify-send 'tilling small'; mode "$tilling_small_steps"
bindsym $mod+q kill; mode default
bindsym Escape mode default
bindsym $mod+Control+space floating disable; mode default
bindsym $mod+Shift+space floating disable; mode default
}
mode "$float_small_steps" {
bindsym h resize shrink Right 80px or 80ppt
bindsym l resize grow Right 80px or 80ppt
bindsym j resize grow Down 80px or 80ppt
bindsym k resize shrink Down 80px or 80ppt
bindsym b move Left 100px
bindsym f move Right 100px
bindsym p move Up 100px
bindsym n move Down 100px
bindsym $mod+apostrophe mode default
bindsym Escape mode default
}
bindsym $mod+equal scratchpad show
bindsym $mod+Shift+minus move scratchpad; mode default
bindsym $mod+minus exec ~/scripts/i3_scripts/hide/hide_all mode; mode default
bindsym $mod+Shift+s [title="term-up"] kill; exec "xfce4-terminal -T term-up"
bindsym $mod+Shift+o [title="term-"] kill; exec "xfce4-terminal -T term-right"; restart
bindsym $mod+Shift+r [title="term-ranger"] kill; exec "xfce4-terminal -T term-ranger --execute ranger"
for_window [class="Xfce4-terminal" title="term-up"] border none
for_window [class="Xfce4-terminal" title="term-up"] floating enable sticky enable
for_window [class="Xfce4-terminal" title="term-up"] move scratchpad
for_window [class="Xfce4-terminal" title="term-up"] resize set 1250 450; move to position 350 0
bindsym $mod+u exec ~/scripts/i3_scripts/hide/hide_ranger; [class="Xfce4-terminal" title="term-up"] scratchpad show; move to position 350 0; move to position 350 0
for_window [title="term-right"] border none
for_window [title="term-right"] floating enable sticky enable
for_window [title="term-right"] move scratchpad
for_window [title="term-right"] resize set 1000 1080; move to position 920 0
bindsym $mod+o exec ~/scripts/i3_scripts/hide/hide_only_terms; [title="term-right"] scratchpad show; move to position 920 0
for_window [class="Xfce4-terminal" title="term-ranger"] border none
for_window [class="Xfce4-terminal" title="term-ranger"] floating enable sticky enable
for_window [class="Xfce4-terminal" title="term-ranger"] move scratchpad
for_window [class="Xfce4-terminal" title="term-ranger"] resize set 1250 450; move to position 350 0
bindsym $mod+i exec ~/scripts/i3_scripts/hide/hide_term_up; [class="Xfce4-terminal" title="term-ranger"] scratchpad show; move to position 350 0
for_window [title="mrblack" class="Hexchat"] resize set 1250 450; move to position 350 0
for_window [title="mrblack" class="Hexchat"] border none
for_window [title="mrblack" class="Hexchat"] floating enable sticky enable
for_window [title="mrblack" class="Hexchat"] move scratchpad
bindsym $mod+bracketleft exec ~/scripts/i3_scripts/hide/hexchat_hide_others; [class="Hexchat"] scratchpad show; move to position 350 0; resize set 1250 450
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
bindsym $mod+Control+1 move container to workspace $ws1
bindsym $mod+Control+2 move container to workspace $ws2
bindsym $mod+Control+3 move container to workspace $ws3
bindsym $mod+Control+4 move container to workspace $ws4
bindsym $mod+Control+5 move container to workspace $ws5
bindsym $mod+Control+6 move container to workspace $ws6
bindsym $mod+Control+7 move container to workspace $ws7
bindsym $mod+Control+8 move container to workspace $ws8
bindsym $mod+Control+9 move container to workspace $ws9
bindsym $mod+Control+0 move container to workspace $ws10
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 $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym F12 mode "$output"; exec notify-send 'output mode'
mode "$output" {
#### SCREENS ####
bindsym 1 exec "~/scripts/screen/mx-big.sh"; mode default
bindsym 2 exec "~/scripts/screen/mx-small.sh"; mode default
bindsym 3 exec "~/scripts/screen/mx-dual.sh"; mode default
#### AUDIO ####
bindsym F1 exec "pactl set-card-profile 0 output:hdmi-stereo"; mode default
bindsym F2 exec "pactl set-card-profile 0 output:analog-stereo"; mode default
#### CONTAINERS ####
bindsym h move container to output left; focus output Left; mode default
bindsym l move container to output right; focus output Right; mode default
bindsym Shift+h move workspace to output Left; mode default
bindsym Shift+l move workspace to output Right; mode default
bindsym Escape; exec notify-send --expire-time=1000 "mode default"; mode default
}
bindsym $mod+p workspace prev_on_output
bindsym $mod+n workspace next_on_output
bindsym $mod+Control+h move container to output left; focus output Left
bindsym $mod+Control+l move container to output right; focus output Right
bindsym $mod+Control+Left move container to output left; focus output Left
bindsym $mod+Control+Right move container to output right; focus output Right
bindsym $mod+Control+Shift+h move workspace to output Left
bindsym $mod+Control+Shift+l move workspace to output Right
bindsym $mod+Control+Shift+Left move workspace to output Left
bindsym $mod+Control+Shift+Right move workspace to output Right
bindsym $mod+Shift+p focus output Left
bindsym $mod+Shift+n focus output Right
bindsym $mod+Ctrl+m exec pavucontrol
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym XF86AudioRaiseVolume exec amixer set Master 10%+
bindsym XF86AudioLowerVolume exec amixer set Master 10%-
bindsym $mod+XF86AudioRaiseVolume exec amixer set Master 200%+
bindsym $mod+$alt+XF86AudioRaiseVolume exec amixer set Master 5%+
bindsym $mod+$alt+XF86AudioLowerVolume exec amixer set Master 5%-
assign [class="Kodi"] $ws3
assign [class="Gnome-pomodoro"] $ws2
for_window [class="Gimp"] border normal
for_window [class="Emacs"] border normal
for_window [class="feh"] floating disable
for_window [class="Spotify"] floating disable
for_window [class="calibre"] floating disable
for_window [class="Godot" title="^Loony_Lips$"] floating enable
for_window [class="Spotify"] move to workspace 5
for_window [title="term Preferences"] floating enable
# for_window [class="Viewnior"] floating enable border none
for_window [class="Xfrun4"] floating enable resize set 520 200
for_window [class="File-roller"] floating enable resize set 720 400
for_window [class="Inkscape" title="Preferences"] floating disable resize set 720 400 move position 650
for_window [class="Godot" title="^Jumper$"] floating enable
for_window [class="Inkscape" title="Preferences"] floating enable resize set 720 400 move position 650 0
for_window [class="Inkscape" title="Document Properties"] floating disable resize set 720 400 move position 650
for_window [title="alsamixer"] floating enable border pixel 1
for_window [class="calamares"] floating enable border normal
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="Galculator"] floating enable border pixel 1
for_window [class="GParted"] floating disable border normal
for_window [title="i3_help"] floating enable sticky enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Manjaro-hello"] floating enable
for_window [class="Manjaro Settings Manager"] floating enable border normal
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable sticky enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable border normal
for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Skype"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="Xfburn"] floating enable
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment