feat(i3): play-pause keys
This commit is contained in:
parent
921db4085b
commit
a1bea6d209
@ -26,13 +26,19 @@ font xft:FiraCode 12
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioPause exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
focus_follows_mouse no
|
||||
|
||||
@ -44,7 +50,6 @@ bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec --no-startup-id dmenu_run -i -b -p "Program to run: " -fn "FiraCode:pixelsize=16"
|
||||
# A more modern dmenu replacement is rofi:
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
@ -85,6 +90,9 @@ bindsym $mod+Shift+slash floating toggle
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+slash focus mode_toggle
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
# focus the child container
|
||||
|
||||
@ -61,7 +61,7 @@ cpu_temperature 0 {
|
||||
format = " %degrees°"
|
||||
max_threshold = "80"
|
||||
format_above_threshold = " %degrees"
|
||||
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
|
||||
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
}
|
||||
|
||||
tztime local {
|
||||
|
||||
2
install
2
install
@ -142,7 +142,7 @@ cmd_gpg() {
|
||||
}
|
||||
|
||||
cmd_i3() {
|
||||
echo "sudo pacman -S nitrogen picom compton ttf-font-awesome xdotool xclip maim"
|
||||
echo "sudo pacman -S nitrogen picom compton ttf-font-awesome xdotool xclip maim playerctl"
|
||||
_link_files_in_sandbox ${TARGETS["i3"]}
|
||||
__install_from_sandbox
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user