1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | set $mod Mod4
font pango:Terminus 11px
# Layout colors bord bg text
client.focused #1F1F1F #505050 #BBBBBB #4F4F4F
client.focused_inactive #1A1A1A #1A1A1A #424242 #121212
client.unfocused #1A1A1A #1A1A1A #4F4F4F #1A1A1A
client.urgent #1A1A1A #3B89B5 #a5a5a5 #1A1A1A
client.background #121212
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
new_window 1pixel
new_float 1pixel
bindsym $mod+Return exec --no-startup-id termite
bindsym $mod+Shift+Return exec termite -e tmux
workspace_auto_back_and_forth yes
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
# Bind shortcuts
bindsym $mod+Shift+q kill
bindsym $mod+p exec firefox --private
bindsym $mod+m bar mode toggle
bindsym $mod+b exec i3lock -c "#121212"
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master '5%+'
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master '5%-'
bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioPlay exec mpc --quiet toggle
bindsym XF86AudioStop exec mpc --quiet stop
bindsym XF86AudioPrev exec mpc --quiet prev
bindsym XF86AudioNext exec mpc --quiet next
bindsym XF86TouchpadToggle exec touchpad
# External Keyboard only
bindsym $mod+F9 exec mpc --quiet toggle
bindsym $mod+F8 exec mpc --quiet prev
bindsym $mod+F10 exec mpc --quiet next
bindsym $mod+F12 exec amixer -D pulse sset Master '5%+'
bindsym $mod+F11 exec amixer -D pulse sset Master '5%-'
bindsym Print exec scrot '%F--%I:%M:%S:%p--$wx$h--scrot.png' -e 'mv $f /home/smlb/pics/scrot'
bindsym $mod+Shift+m exec --no-startup-id termite --name=ncmpcpp -e ncmpcpp
bindsym $mod+Shift+z exec --no-startup-id mpdmenu.sh
bindsym XF86MonBrightnessUp exec xbacklight -inc 10%
bindsym XF86MonBrightnessDown exec xbacklight -dec 10%
bindsym Control+$mod+Delete exec termite -e "htop"
bindsym $mod+d exec dmenu_run -i -h 14 -y 17 -w 250 -q -l 5 -p "> " -fn "terminus-9" -nb "#151515" -nf "#3B50BD" -sb "#272727" -sf "#797979"
# Scratchpad
bindsym $mod+Shift+n move scratchpad
bindsym $mod+n scratchpad show
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+c move absolute position center
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+ograve move right
# System Mode -
bindsym $mod+x mode "$mode_system"
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (x) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id ~/.config/i3/i3exit lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/i3exit logout, mode "default"
bindsym s exec --no-startup-id ~/.config/i3/i3exit suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id ~/.config/i3/i3exit reboot, mode "default"
bindsym x exec --no-startup-id ~/.config/i3/i3exit shutdown, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Cycle through active workspaces
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
# split in horizontal orientation
bindsym $mod+o split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# 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+q focus child
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 0
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
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 0
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"
mode "resize" {
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 ograve resize grow width 10 px or 10 ppt
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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bar {
status_command i3status.sh
font pango: Terminus, Icon 9
position top
colors {
background #080808
statusline #808080
separator #808080
focused_workspace #080808 #222222 #808080
active_workspace #080808 #080808 #797979
inactive_workspace #080808 #080808 #4F4F4F
urgent_workspace #080808 #080808 #EA4C59
}
}
# Statup applications
exec --no-startup-id pulseaudio --start
exec --no-startup-id mpd
exec --no-startup-id xset -b
exec --no-startup-id hsetroot -fill pics/bg/bgbg.jpg
exec --no-startup-id connman-ui-gtk
exec --no-startup-id dunst -c ~/.config/dunst/dunstrc
exec xinput set-prop 11 275 -1
exec_always --no-startup-id parcellite
# Assign foo to workspaces
assign [class="Firefox"] 1
assign [class="Chromium"] 1
assign [instance="weechat"] 4
assign [class="Steam"] 6
assign [class="Zathura"] 7
assign [class="Thunderbird"] 5
assign [instance="ncmpcpp"] 3
assign [instance="connect"] 1
assign [instance="Telegram"] 8
assign [class="TeamSpeak 3"] 8
assign [class="Tor Browser"] 1
assign [class="Counter-Strike: Global Offensive - OpenGL"] 7
for_window [class="Steam"] floating enable
for_window [class="Firefox"] border none
for_window [instance="weechat"] border none
for_window [class="mpv"] floating enable
for_window [class="mpv"] border normal
for_window [window_role="pop-up"] floating enable
for_window [class="Gcolor2"] floating enable
for_window [instance="mpd"] move scratchpad
# Autostart
exec --no-startup-id i3-msg 'workspace 2; exec sh -c "termite"; exec sh -c "termite"; exec sh -c "termite --name=mpd -e "tmux new -s music""'
exec --no-startup-id i3-msg 'workspace 4; exec termite --name=weechat; workspace 1'
# vim: set ft=conf ts=4 sw=4 tw=500 et :
# vim:filetype=i3
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | general {
colors = true
interval = 5
color_good = '#6B73A9'
color_degraded = '#438064'
color_bad = '#B14D4C'
output_format = "i3bar"
}
#order += "disk /home"
order += "volume master"
order += "cpu_usage 0"
order += "cpu_temperature 0"
order += "cpu_temperature 1"
#order += "ipv6"
#order += "run_watch DHCP"
#order += "run_watch VPN"
order += "load"
order += "wireless wlp7s0"
#order += "ethernet eth0"
order += "battery 0"
order += "tztime local"
wireless wlp7s0 {
format_up = " %essid %quality"
format_down = " down"
}
ethernet eth0 {
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
last_full_capacity = true
low_threshold = 20
integer_battery_capacity = true
}
cpu_usage {
format = " %usage"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%d/%m %I:%M %p"
}
load {
format = "%1min"
}
disk "/home" {
format = " %free"
}
cpu_temperature 0 {
format = "%degrees°C"
max_threshold = 70
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input"
}
cpu_temperature 1 {
format = "%degrees°C"
max_threshold = 70
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
}
volume master {
format = " %volume"
format_muted = " muted"
device = "default"
mixer = "Master"
mixer_idx = 0
}
|
x
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/bash
#
# execute external commands in i3status
i3status | (read line && echo $line && read line && echo $line && while :
do
read line
vars=`echo -e "$([[ -z $(mpc current) ]] && echo -e "" || echo -e " $(mpc current)|") $(free -m | awk '/Mem/ {print $3}')Mb"`
text="[{ \"full_text\": \"${vars}\" },"
echo "${line/[/$text}" || exit 1
done)
|
x
Notes
Moved to correct category
- the almighty admin