More i3 niceness.

This commit is contained in:
David Tomaschik
2017-04-14 11:16:49 -07:00
parent 63806dec01
commit 2035518278
4 changed files with 27 additions and 3 deletions

5
bin/_install_i3.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
apt-get install -y \
i3 i3lock xss-auto rxvt-unicode-256color fonts-inconsolata scrot \
xautolock xbacklight i3status

View File

@@ -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

View File

@@ -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

View File

@@ -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