From 279487f03f821ec76438b74206f6907de9fd35b3 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Fri, 29 Aug 2025 00:22:38 +0200 Subject: [PATCH] Fix Sway configuration and added default editor on startup --- sway/.config/sway/conf.d/window.conf | 6 +++--- sway/.config/sway/config | 22 ++++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/sway/.config/sway/conf.d/window.conf b/sway/.config/sway/conf.d/window.conf index 8640b29..e4b1ec5 100644 --- a/sway/.config/sway/conf.d/window.conf +++ b/sway/.config/sway/conf.d/window.conf @@ -53,11 +53,11 @@ #------------------------------------------# # Placing software in a specific workspace # #------------------------------------------# - assign [app_id="foot"]: workspace number 1 - for_window [app_id="foot"]: focus + assign [app_id="emacs"]: workspace number 1 + for_window [app_id="emacs"]: focus assign [app_id="firefox"]: workspace number 2 for_window [app_id="firefox"] focus - assign [app_id="telegram"]: workspace number 5 + assign [app_id="telegram"]: workspace number 3 for_window [app_id="telegram"] focus #---------------------# diff --git a/sway/.config/sway/config b/sway/.config/sway/config index f26802a..90d3cad 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -27,7 +27,10 @@ set $clipboard 'cliphist list | fuzzel --dmenu | cliphist decode | wl-copy' # Your preferred file manager set $filemanager 'foot yazi' -# Set theme +# Your prefered editor +set $editor 'emacs' + +# Import Catppuccin theme defined colors include themes/catppuccin-mocha # target title bg text indicator border @@ -45,7 +48,6 @@ seat seat0 xcursor_theme catppuccin-mocha-lavender-cursors 25 # # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill - output * bg ~/.config/sway/wallpaper.jpg fill # Setting default font @@ -69,10 +71,10 @@ exec swayidle -w \ # 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. -### Run notification daemon +### Run in background notification daemon exec $notification -### Start Pipewire session +### Run in background Pipewire session exec pipewire ### Run clipboard manager @@ -82,8 +84,8 @@ exec wl-paste -t image --watch cliphist store ### OSD server exec swayosd-server -### Start terminal emulator -exec $term +### +exec $editor ### Screenshot tool exec flameshot @@ -123,10 +125,10 @@ exec_always { # Read `man 5 sway-input` for more information about this section. input type:touchpad { - dwt enabled - tap enabled - natural_scroll enabled - middle_emulation enabled + dwt enabled + tap enabled + natural_scroll enabled + middle_emulation enabled } input type:keyboard {