Add some nice to haves to #i3

This commit is contained in:
Colin Powell
2019-04-18 14:58:39 -04:00
parent 24e22170fb
commit 9fad0fcb45
6 changed files with 972 additions and 0 deletions

View File

@ -50,6 +50,7 @@ bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id rofi -show combi
bindsym XF86LaunchA exec --no-startup-id rofi -show combi
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@ -197,3 +198,52 @@ for_window [class="^.*"] border pixel 3
assign [class="discord"] $ws3
exec --no-startup-id xrdb ~/.Xresources
## Volume control
# Path to volume control, without trailing slash
set $volumepath ~/.config/i3/i3-volume
# Command for the status line (used with -t, requires -u)
# ie: i3blocks, i3status
set $statuscmd i3status
# Signal used to update the status line (used with -u, requires -t)
# i3blocks uses SIGRTMIN+10 by default
# i3status uses SIGUSR1 by default
set $statussig SIGUSR1
# Amount to increase/decrease volume as a percentage (used with -i, -d)
set $volumestep 10
# alsa-utils settings when not using pulseaudio-utils
#
# To configure a default card, see https://www.alsa-project.org/main/index.php/Asoundrc
#
# Card number to control. (used with -a and -c)
# If not specified, i3-volume will let `amixer` use a default.
# List cards: aplay -l
#set $alsacard 1
# Uncomment to use alsa-utils (append "-c $alsacard" without quotes to override default card)
#bindsym XF86AudioRaiseVolume exec $volumepath/volume -anp -i $volumestep -t $statuscmd -u $statussig
#bindsym XF86AudioLowerVolume exec $volumepath/volume -anp -d $volumestep -t $statuscmd -u $statussig
#bindsym XF86AudioMute exec $volumepath/volume -amn -t $statuscmd -u $statussig
# pulseaudio-utils settings when not using alsa-utils
#
# Symbolic name for sink (numeric index not supported) (used with -s $sinkname)
# Recommended: comment out this setting and omit the -s option to use default sink
# List sink names: pacmd list-sinks | awk -F "[<>]" '/^\s+name: <.*>/{print $2}'
#set $sinkname alsa_output.pci-0000_00_1b.0.analog-stereo
# Using pulseaudio-utils (append "-s $sinkname" without quotes to override default sink)
bindsym XF86AudioRaiseVolume exec $volumepath/volume -np -i $volumestep -t $statuscmd -u $statussig
bindsym XF86AudioLowerVolume exec $volumepath/volume -np -d $volumestep -t $statuscmd -u $statussig
bindsym XF86AudioMute exec $volumepath/volume -mn -t $statuscmd -u $statussig
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness
bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness
bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness
bindsym XF86Explorer exec arandr