i3: Different keyboard media keys
This commit is contained in:
@@ -110,17 +110,17 @@ bindsym $mod+s scratchpad show
|
|||||||
|
|
||||||
# Define names for default workspaces for which we configure key bindings later on.
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
# We use variables to avoid repeating the names in multiple places.
|
# We use variables to avoid repeating the names in multiple places.
|
||||||
set $ws1 "1:Web"
|
set $ws1 " 1:Web "
|
||||||
set $ws2 "2"
|
set $ws2 " 2 "
|
||||||
set $ws3 "3"
|
set $ws3 " 3 "
|
||||||
set $ws4 "4"
|
set $ws4 " 4 "
|
||||||
set $ws5 "5"
|
set $ws5 " 5 "
|
||||||
set $ws6 "6"
|
set $ws6 " 6 "
|
||||||
set $ws7 "7"
|
set $ws7 " 7 "
|
||||||
set $ws8 "8"
|
set $ws8 " 8 "
|
||||||
set $ws9 "9"
|
set $ws9 " 9 "
|
||||||
set $ws10 "10"
|
set $ws10 " 10 "
|
||||||
workspace $ws1 output DVI-D-0
|
workspace $ws1 output DP-0
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym $mod+1 workspace number $ws1
|
bindsym $mod+1 workspace number $ws1
|
||||||
@@ -213,6 +213,7 @@ bar {
|
|||||||
modifier $mod
|
modifier $mod
|
||||||
tray_padding 0
|
tray_padding 0
|
||||||
tray_output primary
|
tray_output primary
|
||||||
|
font pango:Mensch 10
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
separator #268bd2
|
separator #268bd2
|
||||||
@@ -225,7 +226,6 @@ bar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#red color for borders
|
|
||||||
#<colorclass> <border> <background> <text> <indicator> <child_border>
|
#<colorclass> <border> <background> <text> <indicator> <child_border>
|
||||||
client.focused $main_color $main_color $bg_color #2e9ef4
|
client.focused $main_color $main_color $bg_color #2e9ef4
|
||||||
client.focused_inactive $main_color $bg_color $main_color #2e9ef4
|
client.focused_inactive $main_color $bg_color $main_color #2e9ef4
|
||||||
@@ -235,24 +235,23 @@ bindsym $mod+z exec i3lock -c 151515 -e -f
|
|||||||
|
|
||||||
bindsym XF86Calculator exec --no-startup-id gnome-calculator
|
bindsym XF86Calculator exec --no-startup-id gnome-calculator
|
||||||
|
|
||||||
# Sreen brightness controls
|
# Screen brightness controls
|
||||||
bindsym XF86MonBrightnessUp exec sudo brightnessctl s 10\%+ # increase screen brightness
|
bindsym Mod1+Up exec brightnessctl s 5\%+
|
||||||
bindsym XF86MonBrightnessDown exec sudo brightnessctl s 10\%- # decrease screen brightness
|
bindsym Mod1+Down exec brightnessctl s 5\%-
|
||||||
|
|
||||||
# Media player controls
|
# Media player controls
|
||||||
bindsym XF86AudioPlay exec playerctl play-pause
|
|
||||||
bindsym XF86AudioPause exec playerctl play-pause
|
|
||||||
bindsym XF86AudioStop exec playerctl stop
|
|
||||||
bindsym XF86AudioNext exec playerctl next
|
|
||||||
bindsym XF86AudioPrev exec playerctl previous
|
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle
|
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
bindsym XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
bindsym XF86AudioPause exec playerctl play-pause
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym XF86AudioStop exec playerctl stop
|
||||||
|
bindsym XF86AudioNext exec playerctl next
|
||||||
|
bindsym XF86AudioPrev exec playerctl previous
|
||||||
|
bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input
|
||||||
|
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up && $refresh_i3status
|
||||||
|
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down && $refresh_i3status
|
||||||
|
bindsym XF86AudioMute exec pulseaudio-ctl mute && $refresh_i3status
|
||||||
|
|
||||||
|
# System state management
|
||||||
bindsym Pause exec systemctl suspend
|
bindsym Pause exec systemctl suspend
|
||||||
|
|
||||||
focus_on_window_activation focus
|
focus_on_window_activation focus
|
||||||
|
|||||||
Reference in New Issue
Block a user