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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | ## okubax 2014;i3 config file (v2) ##
set $mod Mod4
#set $MOD MOD1
# SET MODE SWITCH
#set Mode_switch $MOD5
#default, floating, tabbed
#new container floating
# TOGGLE FLOATING / TILING
#bindsym $MOD+SHIFT+t floating toggle
# new window default border
#new_window 1pixel
new_window pixel 2
#new_float 1pixel
new_float pixel 2
# HIDE EDGE BORDERS
#hide_edge_borders <none|vertical|horizontal|both>
#hide_edge_borders both
# font for window titles. ISO 10646 = Unicode
#font fixed
font pango:Droid Sans 9px
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
# Back and Forth
workspace_auto_back_and_forth yes
# kill focused window
bindsym $mod+q kill
#bindsym $mod+Shift+Q kill
# start dmenu (a program launcher)
bindsym $mod+p exec --no-startup-id "j4-dmenu-desktop --dmenu='dmenu -i -b -fn '-*-profont-*-*-*-*-11-*-*-*-*-*-*-*''"
#bindsym $mod+p exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -nb '#111111' -nf '#555555' -sb '#111111' -sf '#aadb0f'
# CHANGING BORDER STYLE
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
# BORDERLESS CONTAINER
#i3-msg border none
# ASSIGN WORKSPACE VARIABLES
set $WS1 term
set $WS2 web
set $WS3 text
set $WS4 media
set $WS5 misc
set $WS6 system
set $WS7 office
set $WS8 mail
set $WS9 games
# WINDOW CONTROL
# Float
## Float everything
#for_window [class="[.]*"] floating enable
#for_window [class=""] floating enable
for_window [class="xpad" instance="scratchpad"] move scratchpad
for_window [class="MPlayer|Gnome-mplayer|Galculator|Gsimplecal|Viewnior|Alarm-clock|xpad|Java|Clamtk"] floating enable
for_window [class="File-roller|Lxappearance|Nitrogen|Arandr|Caffeine|Pavucontrol|emulator64-arm|Transmission-gtk|sublime-text"] floating enable
for_window [title="Preferences|Xfce-notifyd|Skype|TrueCrypt|Catfish|Google Keep|Pocket|irssi"] floating enable
for_window [title="File Operation Progress" class="Thunar"] floating enable
for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable
for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable
# browser pop-ups
for_window [window_role="pop-up"] floating enable,move absolute center
#for_window [class="mousepad"] floating enable
#for_window [class="mousepad"] floating enable
#for_window [class="URxvt"] floating enable
#for_window [title="Browser"] floating enable
#for_window [title="download"] floating enable
## Move to workspace
assign [instance="terminator|urxvt"] $WS1
assign [instance="Navigator|chromium|filezilla|transmission-gtk|Dialog"] $WS2
assign [class="jetbrains-android-studio"] $WS2
assign [class="sublime-text"] $WS3
assign [instance="mousepad|leafpad|geany"] $WS3
assign [instance="shotwell|nitrogen|simple-scan|quodlibet|gnome-mplayer|brasero|devede|imagination|picard|wxcam|google-musicmanager|sound-juicer|goobox"] $WS4
assign [class="MPlayer|mpv|Xfburn|Sonata|Pitivi"] $WS4
assign [class="Thunar|Gimp|Eclipse|Pinta|Blender|Catfish|Galculator"] $WS5
assign [class="VirtualBox"] $WS6
assign [instance="syncbackup|bleachbit|gparted|hardinfo|truecrypt"] $WS6
assign [instance="VCLSalFrame"] $WS7
assign [class="libreoffice*|Zathura"] $WS7
assign [class="Claws-mail"] $WS8
assign [class="Wine|Steam|dontstarve"] $WS9
## KEY BINDINGS
bindsym $MOD+Tab focus right
# SCRATCHPAD CREATE
bindsym $MOD+SHIFT+plus move scratchpad
# SCRATCHPAD SHOW
bindsym $MOD+plus scratchpad show
# OPEN TERMINAL HERE (not working yet)
#bindsym $MOD+n exec $HOME/bin/shell.sh
# HANDLE POPUPS
#popup_during_fullscreen smart
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move focused window
bindsym $mod+Shift+H move left
bindsym $mod+Shift+J move down
bindsym $mod+Shift+K move up
bindsym $mod+Shift+L move right
# split in horizontal orientation
bindsym $mod+bar split h
# split in vertical orientation
bindsym $mod+underscore split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+x layout tabbed
bindsym $mod+z layout default
# 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
# 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 $WS7
bindsym $mod+8 workspace $WS8
bindsym $mod+9 workspace $WS9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace $WS1
bindsym $mod+Shift+at move container to workspace $WS2
bindsym $mod+Shift+numbersign move container to workspace $WS3
bindsym $mod+Shift+dollar move container to workspace $WS4
bindsym $mod+Shift+percent move container to workspace $WS5
bindsym $mod+Shift+asciicircum move container to workspace $WS6
bindsym $mod+Shift+ampersand move container to workspace $WS7
bindsym $mod+Shift+asterisk move container to workspace $WS8
bindsym $mod+Shift+parenleft move container to workspace 9
bindsym $mod+Shift+parenright move container to workspace 10
# 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 exit
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# arrow keys #
# bindsym 113 right
# bindsym 116 up
# bindsym 111 left
# bindsym 114 down
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#EXAMPLE USING THE i3 bar
# Create Log out, Reboot, Poweroff bindings
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $HOME/bin/i3exit lock, mode "default"
bindsym e exec --no-startup-id $HOME/bin/i3exit logout, mode "default"
bindsym s exec --no-startup-id $HOME/bin/i3exit suspend, mode "default"
bindsym h exec --no-startup-id $HOME/bin/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id $HOME/bin/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id $HOME/bin/i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Q mode "$mode_system"
# take screenshot
# bindsym Print exec scrot '%Y-%m-%d-%t_$wx$h.png' -e 'mv $ $f ~/images/'
#bindsym Print exec scrot 'Screenshot - %Y-%m-%d--%_$wx$h_scrot.png' -e 'mv $f ~/images/screenshots'
bindsym Print exec $HOME/bin/screen.sh root
bindsym Mod1+Print exec $HOME/bin/screen.sh active
# colors
#class border backgr. text
client.focused #909737 #909737 #111111
client.focused_inactive #111111 #111111 #999999
client.unfocused #222222 #222222 #999999
client.urgent #a5a5a5 #a5a5a5 #2e3436
client.background #161616
### ADDED KEY BINDINGS ###
#bindsym $MOD+Return exec --no-startup-id terminator
#bindsym $MOD+Return exec --no-startup-id urxvt -g 90x16+15+425
#bindsym $MOD+Return exec --no-startup-id urxvt -g 90x30
bindsym $MOD+Return exec --no-startup-id urxvt
bindsym $MOD+SHIFT+f exec thunar
bindsym $mod+w exec chromium
bindsym $mod+SHIFT+w exec firefox
bindsym $mod+b exec $HOME/downloads/tor-browser_en-US/start-tor-browser
bindsym $mod+e exec geany
bindsym Mod1+l exec i3lock -i $HOME/images/walls/TF2_2.png
bindsym Mod1+e exec claws-mail
bindsym $mod+i exec urxvt -e irssi
bindsym $MOD+SHIFT+t exec urxvt -e htop
# VOLUME ADJUSTMENT
bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
#bindsym $MOD+SHIFT+Up exec amixer set Master 5.0%+
#bindsym $MOD+SHIFT+Down exec amixer set Master 5.0%-
bindsym XF86AudioPlay exec "mpc toggle"
bindsym XF86AudioStop exec "mpc stop"
bindsym XF86AudioNext exec "mpc next"
bindsym XF86AudioPrev exec "mpc prev"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command $HOME/bin/conky-i3bar
tray_output none
position top
mode dock
# font pango:fixed 6
# font pango:Droid Sans Bold 10px
font -*-profont-*-*-*-*-11-*-*-*-*-*-*-*
# font pango:Consolas Bold 9px
colors {
background #161616
statusline #605c5a
# class border backgrd text
focused_workspace #161616 #909737 #ffffff
active_workspace #161616 #161616 #a5a5a5
inactive_workspace #161616 #545454 #a5a5a5
urgent_workspace #161616 #545454 #a5a5a5
}
}
## BACKGROUND OPTIONS (STARTED IN .XINITRC)
# AUTOSTART
exec --no-startup-id sh ~/.fehbg
exec --no-startup-id xpad
|
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 84 | out_to_x no
out_to_console yes
short_units yes
update_interval 1
TEXT
[\
# MPD
{ "full_text" : ${if_mpd_playing} "now_playing ", "color" : "\#545454", "separator" : false, "separator_block_width" : 3 },\
{ "full_text" : "${mpd_artist 20} - ${mpd_title 30}"${else}""${endif}, "color" : "\#909737", "min_width" : 300, "separator" : false, "separator_block_width" : 3 },\
# CPU temperature:
{"full_text":"CPU","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${acpitemp}<45}${acpitemp}°C","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${acpitemp}<55}${acpitemp}°C","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${acpitemp}>=55}${acpitemp}°C","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${endif}${endif}${endif}"},\
# Download:
{"full_text":"DOWN","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${downspeedf wlo1}<1000}${downspeed wlo1}","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf wlo1}<3000}${downspeed wlo1}","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf wlo1}>=3000}${downspeed wlo1}","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# Upload:
{"full_text":"UP","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${upspeedf wlo1}<300}${upspeed wlo1}","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${upspeedf wlo1}<800}${upspeed wlo1}","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${upspeedf wlo1}>=800}${upspeed wlo1}","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# Memory:
{"full_text":"MEM","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${memperc}<30}${memeasyfree}","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${memperc}<70}${memeasyfree}","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${memperc}>=70}${memeasyfree}","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# CPU:
{"full_text":"CPU","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${cpu cpu0}<50}${cpu cpu0}%","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu0}<60E}${cpu cpu0}%","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu0}<=100}${cpu cpu0}%","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# Weather:
#{"full_text":"☂","color":"\#545454","separator":false,"separator_block_width":6},\
#{"full_text":"${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}","color":"\#EEEEEE","separator":false,"separator_block_width":6},\
# Mail:
{"full_text":"MAIL","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}<=0}${execpi 60 python ~/bin/gmail.py}","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}<2}${execpi 60 python ~/bin/gmail.py}","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}>2}${execpi 60 python ~/bin/gmail.py}","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# Battery:
{"full_text":"BAT","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${battery_percent}<30}${battery_percent}%","color":"\#802828","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${battery_percent}<70}${battery_percent}%","color":"\#b27d12","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${battery_percent}>=70}${battery_percent}%","color":"\#909737","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
# Dropbox
{"full_text":"DB","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${execi 6 dropbox status | sed -n 1p}","color":"\#909737","separator":false},\
# Volume:
{"full_text":"VOL","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${execi 1 amixer sget Master,0 | egrep -o '([0-9]+%|\[(on|off)\])' | sed ':a;N;$!ba;s/\n/ /g'}","color":"\#909737","separator":false},\
# Date:
{"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${time %D}","color":"\#aaaaaa","separator":false,"separator_block_width":6},\
# Time:
{"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
{"full_text":"${time %H:%M}","color":"\#aaaaaa","separator":false}\
],
|
x
Notes
font: Profont
bitard said about 10 years ago
Nice conky setup