This commit is contained in:
fz0x1 2024-11-15 11:25:55 +01:00
parent d95e42494e
commit 7aee7348cf
10 changed files with 114 additions and 59 deletions

View file

@ -28,24 +28,21 @@ font pango:monospace 8
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
#exec --no-startup-id nm-applet
# restoring workspaces
# exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspaces/workspace_1.json'"
# exec --no-startup-id "i3-msg 'workspace 2; append_layout ~/.config/i3/workspaces/workspace_2.json'"
# exec --no-startup-id "i3-msg 'workspace 3; append_layout ~/.config/i3/workspaces/workspace_3.json'"
# exec --no-startup-id "i3-msg 'workspace 4; append_layout ~/.config/i3/workspaces/workspace_4.json'"
exec --no-startup-id xss-lock --transfer-sleep-lock -- ~/.config/i3/i3lock --nofork
exec --no-startup-id xss-lock -- ~/.config/i3/i3lock --nofork
# 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 --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
# Use wpctl to adjust volume in PipeWire
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%+ && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%- && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -177,7 +174,10 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# i3lock
bindsym $mod+Shift+x exec --no-startup-id ~/.config/i3/i3lock
# screen
bindsym $mod+Shift+s exec --no-startup-id ~/scripts/bin/screenshot.sh full
bindsym $mod+Control+s exec --no-startup-id ~/scripts/bin/screenshot.sh region
bindsym $mod+Control+f exec --no-startup-id ~/scripts/bin/screenshot.sh full
# bwmenu
bindsym $mod+Control+p exec --no-startup-id ~/bin/bwmenu
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode