commit 269bc32131b776afc4b79fecbbea8efff6a6ef63
parent 6f651892b4af39d7cae9ac4572fe6a5d2b3e81a6
Author: awy <awy@awy.one>
Date: Sat, 3 Jan 2026 00:48:57 +0300
linkhandler
Diffstat:
2 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/.config/sway/config b/.config/sway/config
@@ -26,18 +26,21 @@ output DP-2 resolution 2560x1440@165Hz position 0 0 scale 1
font pango:monospace 10
exec swaybg -c 1d2021
# COLORS
-client.focused #fabd2f #fabd2f #282828 #fabd2f #fabd2f
-client.focused_inactive #3c3836 #3c3836 #ebdbb2 #3c3836 #3c3836
-client.unfocused #282828 #282828 #ebdbb2 #282828 #282828
-client.urgent #fb4934 #fb4934 #282828 #fb4934 #fb4934
+client.focused #928374 #928374 #3c3836 #928374 #928374
+client.focused_inactive #504945 #504945 #ebdbb2 #504945 #504945
+client.unfocused #3c3836 #3c3836 #ebdbb2 #3c3836 #3c3836
+client.urgent #fb4934 #fb4934 #3c3836 #fb4934 #fb4934
client.placeholder #000000 #0c0c0c #ebdbb2 #000000 #0c0c0c
-client.background #282828
+client.background #3c3836
workspace 1 output DP-2
workspace 2 output DP-3
+default_border pixel 1
+default_floating_border pixel 1
+for_window [class=.*] border pixel 1
# seat seat0 xcursor_theme hicolor
-for_window [app_id=".*"] border normal
+# for_window [app_id=".*"] border normal
# floating window assigments
for_window [window_role = "pop-up"] floating enable
for_window [window_role = "bubble"] floating enable
@@ -101,7 +104,8 @@ bindsym $mod+Shift+Print exec 'dmenurecord kill'
bindsym $mod+Tab exec chooseprofile
bindsym $mod+grave exec bookmarks
bindsym $mod+Shift+grave exec define
-bindsym $mod+Shift+n exec sh -c '$term -T newsraft -e newsraft; pkill -RTMIN+6 $STATUSBAR'
+bindsym $mod+n exec sh -c '$term -T newsraft -e newsraft; pkill -RTMIN+6 $STATUSBAR'
+bindsym $mod+Shift+n exec linkhandler
bindsym $mod+m exec $term -e rmpc
bindsym $mod+Shift+m exec 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof $STATUSBAR)'
bindsym $mod+comma exec mpc prev
@@ -280,12 +284,12 @@ bar {
colors {
background #282828
statusline #ebdbb2
- focused_workspace #fabd2f #fabd2f #282828
- active_workspace #3c3836 #3c3836 #ebdbb2
- inactive_workspace #282828 #282828 #ebdbb2
- urgent_workspace #fb4934 #fb4934 #282828
+ focused_workspace #928374 #928374 #3c3836
+ active_workspace #504945 #504945 #ebdbb2
+ inactive_workspace #3c3836 #3c3836 #ebdbb2
+ urgent_workspace #fb4934 #fb4934 #3c3836
}
- separator_symbol ""
+ separator_symbol " | "
}
include /etc/sway/config.d/*
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
@@ -19,7 +19,7 @@ echo "$url" | rg -q 'youtube\.com/watch' && {
case "$url" in
*mkv | *webm | *mp4 | *invidious*/watch* | *youtube.com/watch* | *youtube.com/playlist* | *youtube.com/v/* | *youtube.com/shorts* | *youtu.be* | *hooktube.com* | *bitchute.com* | *videos.lukesmith.xyz* | *odysee.com*)
- setsid -f mpv -quiet "$url" >/dev/null 2>&1
+ setsid -f tsp mpv -quiet "$url" >/dev/null 2>&1
;;
*png | *jpg | *jpe | *jpeg | *gif | *webp)
curl -sL "$url" >"/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && swayimg "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 &