From fd4dad8ffe8269bf59f3ceaa51ec5177ba8cb88a Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Tue, 30 Jul 2024 16:36:33 -0300 Subject: [PATCH] chore(sway): update configs --- desktop/configs/shell-files/.zshrc | 2 ++ desktop/configs/sway/.config/sway/settings/binds | 2 +- desktop/configs/sway/.config/sway/settings/config | 6 +++--- desktop/configs/sway/.config/sway/settings/init | 3 +++ desktop/configs/sway/.config/sway/settings/rules | 2 ++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/desktop/configs/shell-files/.zshrc b/desktop/configs/shell-files/.zshrc index 7194f44..2431543 100644 --- a/desktop/configs/shell-files/.zshrc +++ b/desktop/configs/shell-files/.zshrc @@ -44,6 +44,7 @@ alias neofetch="fastfetch" alias kvm="sh ~/scripts/kvm.sh" alias windows="sudo grub-set-default 0; sudo grub-reboot 'Microsoft Windows UEFI/GPT'; systemctl reboot" alias ff="fastfetch" +alias feh="imv" export BAT_THEME="Solarized (light)" export FPATH="/hdd/docs/eza/completions/zsh:$FPATH" @@ -55,5 +56,6 @@ eval `dircolors /yang/docs/dircolors.256dark` [ -f "/yang/.ghcup/env" ] && source "/yang/.ghcup/env" # ghcup-env if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + export XDG_CURRENT_DESKTOP="sway" dbus-run-session sway fi diff --git a/desktop/configs/sway/.config/sway/settings/binds b/desktop/configs/sway/.config/sway/settings/binds index 5c609b3..913f17d 100644 --- a/desktop/configs/sway/.config/sway/settings/binds +++ b/desktop/configs/sway/.config/sway/settings/binds @@ -84,7 +84,7 @@ bindsym $mod+e exec pcmanfm bindsym Print exec ~/.local/bin/way-print.sh p bindsym Shift+Print exec ~/.local/bin/way-print.sh s bindsym Control+Shift+Print exec ~/.local/bin/way-print.sh t -bindsym Control+Print exec ~/.local/bin/way-print.sh m +bindsym Control+Print exec ~/.local/bin/print-window.sh # audio bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ diff --git a/desktop/configs/sway/.config/sway/settings/config b/desktop/configs/sway/.config/sway/settings/config index 5065055..0663146 100644 --- a/desktop/configs/sway/.config/sway/settings/config +++ b/desktop/configs/sway/.config/sway/settings/config @@ -1,7 +1,7 @@ output { - HDMI-A-1 pos 0 0 - DP-3 pos 0 -1080 - DP-2 pos 2560 0 + HDMI-A-1 pos 0 0 mode --custom 2560x1080@75Hz + DP-3 disable pos 0 -1080 + DP-2 pos 2560 0 } default_border pixel 2 diff --git a/desktop/configs/sway/.config/sway/settings/init b/desktop/configs/sway/.config/sway/settings/init index 4151da2..9e5a2a4 100644 --- a/desktop/configs/sway/.config/sway/settings/init +++ b/desktop/configs/sway/.config/sway/settings/init @@ -15,6 +15,9 @@ exec { dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway rm -rf ~/tmp/* ~/scripts/swww.sh + otd-daemon + ~/scripts/weechat.sh + dunst & } # vim: ts=2 sts=2 sw=2 ft=swayconfig diff --git a/desktop/configs/sway/.config/sway/settings/rules b/desktop/configs/sway/.config/sway/settings/rules index ccbd470..7733935 100644 --- a/desktop/configs/sway/.config/sway/settings/rules +++ b/desktop/configs/sway/.config/sway/settings/rules @@ -19,7 +19,9 @@ for_window [class="XIVLauncher.Core"] move to workspace 9, floating enable for_window [class=".*csgo.*"] move to workspace 9, floating enable assign [class="gamescope"] 9 for_window [class="gamescope"] floating enable +for_window [class="cs2"] move to workspace 9, fullscreen enable for_window [class=".*steam_.*"] move to workspace 9, floating enable +for_window [class="Melvor Idle"] move to workspace 10 # firefox tweaks for_window [title = "Firefox - Sharing Indicator"] kill