mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
More i3 niceness.
This commit is contained in:
5
bin/_install_i3.sh
Executable file
5
bin/_install_i3.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
apt-get install -y \
|
||||||
|
i3 i3lock xss-auto rxvt-unicode-256color fonts-inconsolata scrot \
|
||||||
|
xautolock xbacklight i3status
|
||||||
@@ -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 XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
|
||||||
# Screen brightness controls
|
# Screen brightness controls
|
||||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
|
||||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 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
|
# useful utilities
|
||||||
exec --no-startup-id /usr/bin/cinnamon-settings-daemon &
|
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
|
# no need for borders on the edge of the screen
|
||||||
hide_edge_borders both
|
hide_edge_borders both
|
||||||
|
|
||||||
|
# vim:filetype=i3
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ if filereadable(glob("~/.vim/bundle/Vundle.vim/README.md"))
|
|||||||
Plugin 'fatih/vim-go'
|
Plugin 'fatih/vim-go'
|
||||||
Plugin 'altercation/vim-colors-solarized'
|
Plugin 'altercation/vim-colors-solarized'
|
||||||
Plugin 'vimoutliner/vimoutliner'
|
Plugin 'vimoutliner/vimoutliner'
|
||||||
|
Plugin 'PotatoesMaster/i3-vim-syntax'
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ function read_saved_prefs {
|
|||||||
function save_prefs {
|
function save_prefs {
|
||||||
(( $SAVE )) || return 0
|
(( $SAVE )) || return 0
|
||||||
local pref_file=${BASEDIR}/installed-prefs
|
local pref_file=${BASEDIR}/installed-prefs
|
||||||
(echo_pref BASEDIR
|
(echo_pref BASEDIR
|
||||||
echo_pref MINIMAL
|
echo_pref MINIMAL
|
||||||
echo_pref INSTALL_KEYS
|
echo_pref INSTALL_KEYS
|
||||||
echo_pref TRUST_ALL_KEYS
|
echo_pref TRUST_ALL_KEYS
|
||||||
|
|||||||
Reference in New Issue
Block a user