diff --git a/swaywm/config b/swaywm/config index a55837e..a4bd802 100644 --- a/swaywm/config +++ b/swaywm/config @@ -1,13 +1,15 @@ -set $term alacritty +set $term foot set $menu fuzzel +set $fm pcmanfm set $mod Mod4 # Workspace names set $ws1 1:code -set $ws2 2:ref +set $ws2 2:make set $ws3 3:net -set $ws4 4:game +set $ws4 4:comm +set $ws5 5:game include /etc/sway/config.d/* include config.d/* diff --git a/swaywm/config.d/input b/swaywm/config.d/input index 3c63d8a..a7eb190 100644 --- a/swaywm/config.d/input +++ b/swaywm/config.d/input @@ -1,6 +1,9 @@ focus_follows_mouse no focus_on_window_activation none +input type:keyboard { + xkb_options compose:menu +} input type:pointer { pointer_accel -0.5 @@ -13,6 +16,8 @@ input type:pointer { # Start a terminal bindsym $mod+Return exec $term + bindsym $mod+m exec $fm + # Kill focused window bindsym $mod+q kill @@ -59,7 +64,7 @@ input type:pointer { bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 - bindsym $mod+5 workspace number 5 + bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 @@ -70,7 +75,7 @@ input type:pointer { bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 - bindsym $mod+Shift+5 move container to workspace number 5 + bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 @@ -133,16 +138,17 @@ mode "resize" { bindsym Escape mode "default" } bindsym $mod+r mode "resize" + # # Utilities: # - # Special keys to adjust volume via PulseAudio - bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle# && echo 0 >> /tmp/wob-pipe - bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%# && echo 0 >> /tmp/wob-pipe - bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%# && echo 0 >> /tmp/wob-pipe - bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle + # Special keys to adjust volume via PipeWire + bindsym --locked XF86AudioMute exec wpctl set-mute \@DEFAULT_AUDIO_SINK@ toggle + bindsym --locked XF86AudioLowerVolume exec wpctl set-volume \@DEFAULT_AUDIO_SINK@ 0.05- + bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume \@DEFAULT_AUDIO_SINK@ 0.05+ + # Special keys to adjust brightness via brightnessctl - bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- - bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ +# bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- +# bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ # Special key to take a screenshot with grim bindsym Print exec grim diff --git a/swaywm/config.d/layout b/swaywm/config.d/layout deleted file mode 100644 index b008a0a..0000000 --- a/swaywm/config.d/layout +++ /dev/null @@ -1,2 +0,0 @@ -gaps inner 10 - diff --git a/swaywm/config.d/output b/swaywm/config.d/output deleted file mode 100644 index f0d1068..0000000 --- a/swaywm/config.d/output +++ /dev/null @@ -1,7 +0,0 @@ -### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output DP-3 { - mode 3440x1440@144Hz - bg /home/anna/Pictures/backgrounds/tarantula.png fill -} diff --git a/swaywm/config.d/status_bar b/swaywm/config.d/status_bar deleted file mode 100644 index 7ac83fa..0000000 --- a/swaywm/config.d/status_bar +++ /dev/null @@ -1,17 +0,0 @@ -# -# Status Bar: -# -# Read `man 5 sway-bar` for more information about this section. -bar { - position top - - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while true; do /home/anna/bin/custom_sway_status.sh; sleep 1; done - - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c - } -}