Change i3 config to not kill polybar
This commit is contained in:
parent
bd6fe43b4a
commit
4e7b8b942f
1 changed files with 10 additions and 9 deletions
|
@ -40,11 +40,12 @@ exec_always --no-startup-id dunst
|
|||
exec --no-startup-id polybar -r
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
# Add "&& $refresh_i3status" if needed
|
||||
set $refresh_i3status killall -SIGUSR1 polybar
|
||||
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 --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
@ -64,7 +65,7 @@ bindsym $mod+Shift+c kill
|
|||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+p exec --no-startup-id "rofi -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi"
|
||||
bindsym $mod+Shift+p exec --no-startup-id "rofi -show emoji -modi emoji -theme Arc-Dark -font 'Noto Emoji 18'"
|
||||
|
||||
bindsym $mod+o exec --no-startup-id "passmenu -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi"
|
||||
bindsym $mod+Shift+o exec --no-startup-id "passmenu-otp -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi"
|
||||
# A more modern dmenu replacement is rofi:
|
||||
|
@ -73,8 +74,8 @@ bindsym $mod+Shift+o exec --no-startup-id "passmenu-otp -combi-modi window,drun,
|
|||
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
bindsym $mod+Shift+F11 exec --no-startup-id "pactl set-default-sink 3 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt"
|
||||
bindsym $mod+Shift+F12 exec --no-startup-id "pactl set-default-sink 76 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt"
|
||||
bindsym $mod+Shift+F11 exec --no-startup-id "pactl set-default-sink 2 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt"
|
||||
bindsym $mod+Shift+F12 exec --no-startup-id "pactl set-default-sink 1 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt"
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
|
@ -164,8 +165,8 @@ bindsym $mod+Shift+9 move container to workspace number $ws9
|
|||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# keyboard layouts
|
||||
bindsym $mod+Shift+F1 exec --no-startup-id setxkbmap -layout us && $refresh_i3status
|
||||
bindsym $mod+Shift+F2 exec --no-startup-id setxkbmap -layout gb && $refresh_i3status
|
||||
bindsym $mod+Shift+F1 exec --no-startup-id setxkbmap -layout us
|
||||
bindsym $mod+Shift+F2 exec --no-startup-id setxkbmap -layout gb
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Mod1+r reload
|
||||
|
|
Loading…
Reference in a new issue