From 28fc82f37a3d05086f86f08b00fabdcde2825844 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Mon, 17 Feb 2025 16:16:32 +0100 Subject: [PATCH] organize a bit --- .../sway/{colors => colors/foot-colors} | 0 sway/.config/sway/{ => colors}/moonfly | 0 sway/.config/sway/config | 51 +----------------- sway/.config/sway/config.d/window_overrides | 22 ++++++++ sway/.config/sway/{ => wallpapers}/ibm.jpg | Bin .../sway/{ => wallpapers}/lock-fullhd.png | Bin .../sway/{ => wallpapers}/lock-wuxga.png | Bin sway/.config/sway/{ => wallpapers}/wall.jpg | Bin 8 files changed, 24 insertions(+), 49 deletions(-) rename sway/.config/sway/{colors => colors/foot-colors} (100%) rename sway/.config/sway/{ => colors}/moonfly (100%) create mode 100644 sway/.config/sway/config.d/window_overrides rename sway/.config/sway/{ => wallpapers}/ibm.jpg (100%) rename sway/.config/sway/{ => wallpapers}/lock-fullhd.png (100%) rename sway/.config/sway/{ => wallpapers}/lock-wuxga.png (100%) rename sway/.config/sway/{ => wallpapers}/wall.jpg (100%) diff --git a/sway/.config/sway/colors b/sway/.config/sway/colors/foot-colors similarity index 100% rename from sway/.config/sway/colors rename to sway/.config/sway/colors/foot-colors diff --git a/sway/.config/sway/moonfly b/sway/.config/sway/colors/moonfly similarity index 100% rename from sway/.config/sway/moonfly rename to sway/.config/sway/colors/moonfly diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 52eefd5..e18f383 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -24,37 +24,15 @@ set $lock $HOME/.config/sway/lock.sh set $menu rofi -show combi | xargs swaymsg exec -- ### Output configuration -# -# Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/) -# output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill output * bg /home/0xa/Pictures/tiles/343.png tile -# output * bg /home/grue/Pictures/paper.jpg fill -# output * bg ./wall.jpg fill -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# -# You can get the names of your outputs by running: swaymsg -t get_outputs - -### Idle configuration -# -# Example configuration: -# +# screen lock exec swayidle -w \ timeout 300 $lock \ timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ before-sleep $lock -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when -# resumed. It will also lock your screen before your computer goes to sleep. ### Input configuration -# -# Example configuration: -# input type:touchpad { accel_profile adaptive click_method clickfinger @@ -70,9 +48,6 @@ input type:keyboard { xkb_layout "us,ru" xkb_options "caps:ctrl_modifier,grp:alt_space_toggle" } -# -# You can get the names of your inputs by running: swaymsg -t get_inputs -# Read `man 5 sway-input` for more information about this section. focus_follows_mouse yes # mouse_warping container @@ -298,7 +273,7 @@ mode "resize" { bindsym --to-code $mod+r mode "resize" ## Styling: colors -include colors +include ./colors/foot-colors ## Window styling # Border BG Text Indicator Child Border @@ -339,27 +314,5 @@ exec blueman-applet exec_always pkill kanshi; exec kanshi # exec udiskie --tray --no-automount -# window rules -# floating -for_window [app_id="imv"] floating enable; border normal -for_window [app_id="org.twosheds.iwgtk"] floating enable; border normal -for_window [app_id=".blueman-manager-wrapped"] floating enable; border normal -for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable; border normal - -# tabbed containers -for_window [app_id="CubicSDR"] layout tabbed -for_window [app_id="org.wireshark.Wireshark"] layout tabbed - -for_window [app_id="zoom" title="^zoom$"] border none, floating enable -# For specific Zoom windows -for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable -for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700 -# Open Zoom Meeting windows on a new workspace (a bit hacky) -for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open -# kill firefox sharing indicator -for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill -# fix picture-in-picture behaviour -for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none - include ./config.d/* include /etc/sway/config.d/* diff --git a/sway/.config/sway/config.d/window_overrides b/sway/.config/sway/config.d/window_overrides new file mode 100644 index 0000000..2b5ea79 --- /dev/null +++ b/sway/.config/sway/config.d/window_overrides @@ -0,0 +1,22 @@ +# window rules +# floating +for_window [app_id="imv"] floating enable; border normal +for_window [app_id="org.twosheds.iwgtk"] floating enable; border normal +for_window [app_id=".blueman-manager-wrapped"] floating enable; border normal +for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable; border normal + +# tabbed containers +for_window [app_id="CubicSDR"] layout tabbed +for_window [app_id="org.wireshark.Wireshark"] layout tabbed + +for_window [app_id="zoom" title="^zoom$"] border none, floating enable +# For specific Zoom windows +for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable +for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700 +# Open Zoom Meeting windows on a new workspace (a bit hacky) +for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open +# kill firefox sharing indicator +for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill +# fix picture-in-picture behaviour +for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none + diff --git a/sway/.config/sway/ibm.jpg b/sway/.config/sway/wallpapers/ibm.jpg similarity index 100% rename from sway/.config/sway/ibm.jpg rename to sway/.config/sway/wallpapers/ibm.jpg diff --git a/sway/.config/sway/lock-fullhd.png b/sway/.config/sway/wallpapers/lock-fullhd.png similarity index 100% rename from sway/.config/sway/lock-fullhd.png rename to sway/.config/sway/wallpapers/lock-fullhd.png diff --git a/sway/.config/sway/lock-wuxga.png b/sway/.config/sway/wallpapers/lock-wuxga.png similarity index 100% rename from sway/.config/sway/lock-wuxga.png rename to sway/.config/sway/wallpapers/lock-wuxga.png diff --git a/sway/.config/sway/wall.jpg b/sway/.config/sway/wallpapers/wall.jpg similarity index 100% rename from sway/.config/sway/wall.jpg rename to sway/.config/sway/wallpapers/wall.jpg