i3-config
Opened this issue · 9 comments
aleinside commented
# Window decoration
new_window pixel 2
bindsym $mod+u border none
bindsym $mod+z border pixel 2
bindsym $mod+n border normal
aleinside commented
# 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
aleinside commented
# Autostart programs
exec --no-startup-id ~/.fehbg
exec --no-startup-id nm-applet
exec --no-startup-id xautolock -time 5 -locker "i3lock -i /usr/share/wallpapers/Ethais/contents/images/1366x768.png"
aleinside commented
# Custom keybindings
bindsym $mod+F2 exec --no-startup-id dolphin
bindsym $mod+F3 exec --no-startup-id firefox
bindsym $mod+F4 exec --no-startup-id gvim
bindsym $mod+0 exec --no-startup-id i3lock -i /usr/share/wallpapers/Ethais/contents/images/1366x768.png
bindsym Print exec "scrot -e 'mv $f ~/Screenshots'"
bindsym $mod+Print exec "scrot -ue 'mv $f ~/Screenshots'"
bindsym $mod+Shift+0 exit
aleinside commented
workspace_auto_back_and_forth yes
aleinside commented
Launch applications on specified workspaces
At first, you need to find out the xprop window class of your target application. For this, start xprop and click on the application window. The 2nd string under WM_CLASS(STRING) is the string you need to know in the next step: add the following line to your i3 config file (and replace CLASS with the just determined string):
assign [class="CLASS"] 10
aleinside commented
sudo apt-get install lxappearance gtk-chtheme qt4-qtconfig
aleinside commented
bindsym $mod+1 workspace 1: mail
aleinside commented
aleinside commented
#!/bin/bash
# count how many updates we have got
ups=`/usr/lib/update-notifier/apt-check --human-readable | head -1 | awk '{print $1;}'`
# print the results
if [ "$ups" -eq "1" ]
then
echo "There is 1 update"
elif [ "$ups" -gt "1" ]
then
echo "There are $ups updates"
elif [ -f /var/run/reboot-required ]; then
echo 'Reboot required'
else
echo "Up to date"
fi
# Update status
[updates]
label=
interval=3600
command=/path/to/update/status/script/from/above