From 23f78fa40f66a5787af61836154146c45579ba44 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 6 Jun 2023 01:47:11 -0500 Subject: [PATCH] Good morning, sway --- common/kitty/kitty.conf | 1 + host/desktop/sway/config | 2 +- os/linux/bin/maybe-good-morning | 7 ++++++- os/linux/sway/config | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/common/kitty/kitty.conf b/common/kitty/kitty.conf index 9460ccd..b17b12c 100644 --- a/common/kitty/kitty.conf +++ b/common/kitty/kitty.conf @@ -3,6 +3,7 @@ bold_font IosevkaLyteTerm Heavy italic_font IosevkaLyteTerm Italic bold_italic_font IosevkaLyteTerm Heavy Italic font_size 12.5 +inactive_text_alpha 0.5 symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E6AA,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF,U+F0001-U+F1AF0 Symbols Nerd Font Mono diff --git a/host/desktop/sway/config b/host/desktop/sway/config index 6c33619..ba0b8d0 100644 --- a/host/desktop/sway/config +++ b/host/desktop/sway/config @@ -1,5 +1,5 @@ default_border pixel 1 -exec swayidle -w timeout 600 'notify-send "Idling in 30 seconds..."' timeout 630 'swaylock -f' timeout 660 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f' +exec swayidle -w timeout 600 'notify-send "Idling in 30 seconds..."' timeout 630 'swaylock -f' timeout 660 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" & maybe-good-morning' before-sleep 'swaylock -f' output "Samsung Electric Company SyncMaster H1AK500000" position 0,0 diff --git a/os/linux/bin/maybe-good-morning b/os/linux/bin/maybe-good-morning index 28d1e2c..7a11ea1 100755 --- a/os/linux/bin/maybe-good-morning +++ b/os/linux/bin/maybe-good-morning @@ -15,4 +15,9 @@ notify-send \ "Activate this notification (click it or Super+Shift+Space) to run the script. Dismiss (Super+Ctrl+Space) to ignore." \ --action=default=Activate \ | rg default \ - && hyprctl dispatch exec [float] wezterm start good-morning + && \ + if set -q HYPRLAND_INSTANCE_SIGNATURE + hyprctl dispatch exec [float] wezterm start good-morning + else + sway exec 'floating-term good-morning' + end diff --git a/os/linux/sway/config b/os/linux/sway/config index 51d8231..5754b7f 100644 --- a/os/linux/sway/config +++ b/os/linux/sway/config @@ -42,13 +42,13 @@ input type:touchpad { } bindsym $mod+control+space exec makoctl dismiss -# bindsym $mod+shift+space exec makoctl invoke +bindsym $mod+shift+space exec makoctl invoke bindsym $mod+return exec kitty --single-instance bindsym $mod+shift+return exec floating-term bindsym $mod+shift+alt+return exec kitty bindsym $mod+c kill bindsym $mod+shift+c kill # TODO: kill -9? -bindsym $mod+shift+space exec wofi --show drun +# bindsym $mod+shift+space exec wofi --show drun bindsym $mod+space exec wofi --show drun bindsym $mod+shift+s exec clipshot bindsym $mod+e exec thunar