From 370263ac3fd764b6620ce58d1e3c63099cc657de Mon Sep 17 00:00:00 2001 From: opal Date: Fri, 1 Mar 2024 09:27:36 -0800 Subject: [PATCH] stuff --- .bash_profile | 2 ++ .config/mimeapps.list | 3 +++ .config/sway/config | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 219972e..3421cb7 100644 --- a/.bash_profile +++ b/.bash_profile @@ -8,4 +8,6 @@ export BROWSER=/usr/bin/firefox export VISUAL=vim export EDITOR=vim export QT_QPA_PLATFORMTHEME=qt5ct +export DESKTOP_SESSION=sway +export XDG_CURRENT_DESKTOP=KDE #[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 6a9cd37..168e3e6 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -1,3 +1,6 @@ [Default Applications] x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop +x-scheme-handler/http=firefox-esr.desktop +x-scheme-handler/https=firefox-esr.desktop +inode/directory=org.kde.dolphin.desktop diff --git a/.config/sway/config b/.config/sway/config index 99a0f08..8827bf6 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -56,6 +56,11 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPlay exec playerctl play-pause +# Strawberry music player song control +bindsym Ctrl+F9 exec strawberry -r # Previous song +bindsym Ctrl+F12 exec strawberry -f # Next song +bindsym Ctrl+F10 exec strawberry -t # Pause/play song + # Backlight bindsym XF86MonBrightnessUp exec light -A 10 && notify-send "󰃞 Light" "Brightness: $(light)%" --hint="int:value:$(light)" bindsym XF86MonBrightnessDown exec light -U 10 && notify-send "󰃞 Light" "Brightness: $(light)%" --hint="int:value:$(light)" @@ -177,6 +182,9 @@ exec /usr/bin/blueman-applet # Clamshell Mode Script #exec_always ~/.config/sway/clamshell.sh +# KDE polkit +exec /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1 + # Gtk exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK @@ -189,6 +197,8 @@ client.focused "#6400b0" "#7607e6" "#ffffff" "#6400b0" set $opacity 0.90 for_window [class="Emacs"] opacity $opacity for_window [app_id="dolphin"] opacity $opacity +for_window [app_id="strawberry"] opacity $opacity +for_window [app_id="Nautilus"] opacity $opacity # Gaps smart_gaps on @@ -196,11 +206,11 @@ gaps inner 5 gaps outer 2 # Idle configuration - exec swayidle -w \ +exec swayidle -w \ timeout 3200 'swaymsg "output * dpms off"' \ - timeout 15 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f' +# timeout 15 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ ### Input configuration #