From 20355182785adadb95199e4aec4b0248c762a0c6 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 14 Apr 2017 11:16:49 -0700 Subject: [PATCH] More i3 niceness. --- bin/_install_i3.sh | 5 +++++ dotfiles/config/i3/config | 22 ++++++++++++++++++++-- dotfiles/vimrc | 1 + install.sh | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100755 bin/_install_i3.sh diff --git a/bin/_install_i3.sh b/bin/_install_i3.sh new file mode 100755 index 0000000..574ebce --- /dev/null +++ b/bin/_install_i3.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +apt-get install -y \ + i3 i3lock xss-auto rxvt-unicode-256color fonts-inconsolata scrot \ + xautolock xbacklight i3status diff --git a/dotfiles/config/i3/config b/dotfiles/config/i3/config index f6d0750..e71506d 100644 --- a/dotfiles/config/i3/config +++ b/dotfiles/config/i3/config @@ -143,8 +143,24 @@ bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # Screen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 10 -bindsym XF86MonBrightnessDown exec xbacklight -dec 10 +bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 +bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 + +# screenshots +set $scrotformat %F-%T.png +set $screendir ~/Pictures/Screenshots +# whole screen +bindsym Print exec --no-startup-id \ + mkdir -p $screendir && \ + /usr/bin/scrot $screendir/$scrotformat +# current window +bindsym Shift+Print exec --no-startup-id \ + mkdir -p $screendir && \ + /usr/bin/scrot -u $screendir/$scrotformat +# selection +bindsym --release $alt+Print exec --no-startup-id \ + mkdir -p $screendir && \ + /usr/bin/scrot -s $screendir/$scrotformat # useful utilities exec --no-startup-id /usr/bin/cinnamon-settings-daemon & @@ -160,3 +176,5 @@ for_window [class="^burp-StartBurp$" title="^(?!Burp Suite)"] floating enable # no need for borders on the edge of the screen hide_edge_borders both + +# vim:filetype=i3 diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 7610e9d..5a192cc 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -17,6 +17,7 @@ if filereadable(glob("~/.vim/bundle/Vundle.vim/README.md")) Plugin 'fatih/vim-go' Plugin 'altercation/vim-colors-solarized' Plugin 'vimoutliner/vimoutliner' + Plugin 'PotatoesMaster/i3-vim-syntax' call vundle#end() endif diff --git a/install.sh b/install.sh index c547a05..49adcf0 100755 --- a/install.sh +++ b/install.sh @@ -239,7 +239,7 @@ function read_saved_prefs { function save_prefs { (( $SAVE )) || return 0 local pref_file=${BASEDIR}/installed-prefs - (echo_pref BASEDIR + (echo_pref BASEDIR echo_pref MINIMAL echo_pref INSTALL_KEYS echo_pref TRUST_ALL_KEYS