aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/hypr/hyprland.conf17
-rw-r--r--.config/waybar/config.jsonc9
-rwxr-xr-x.local/bin/spec23
-rwxr-xr-x.local/bin/wrappers/telegram3
4 files changed, 47 insertions, 5 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 5fface9..4e9770c 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -19,6 +19,9 @@ exec-once = portal
exec-once = sleep 2 && waybar
exec-once = sleep 2 && stmpdup
+exec-once = [workspace 9 silent] sleep 1 && telegram
+exec-once = [workspace 8 silent] sleep 1 && $terminal -a neomutt -T neomutt neomutt
+
env = XCURSOR_SIZE,24
env = XCURSOR_THEME,Adwaita
env = HYPRCURSOR_SIZE,24
@@ -112,7 +115,7 @@ misc {
swallow_regex = ^(footclient)$
# background_color = rgb(1E2326)
background_color = rgb(4c566a)
- disable_hyprland_qtutils_check = true
+ disable_hyprland_guiutils_check = true
middle_click_paste = false
}
@@ -163,7 +166,7 @@ bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, exec, rmpc togglepause
bind = $mainMod, Grave, exec, bookmarks
-bind = $mainMod SHIFT, J, togglesplit, # dwindle
+# bind = $mainMod SHIFT, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, Return, swapnext
bind = , Print, exec, grim pic-full-$(date '+%y%m%d-%H%M-%S').png
@@ -206,6 +209,8 @@ bind = $mainMod SHIFT, Q, exec, sysact
bind = $mainMod, L, resizeactive, 100 0
bind = $mainMod, H, resizeactive, -100 0
+bind = $mainMod SHIFT, J, resizeactive, 0 100
+bind = $mainMod SHIFT, K, resizeactive, 0 -100
bind = $mainMod, J, cyclenext, prev
bind = $mainMod, K, cyclenext
@@ -258,6 +263,9 @@ workspace = 2, monitor:DP-2
workspace = 3, monitor:DP-3
workspace = 4, monitor:DP-3
+workspace = 8, monitor:DP-2
+workspace = 9, monitor:DP-2
+
windowrulev2 = float, class:^(steam)$, title:^(Friends List)$
windowrulev2 = float, class:^(steam)$, title:^(Steam - News)$
windowrulev2 = float, class:^(steam)$, title:.* - Chat$
@@ -270,8 +278,9 @@ windowrulev2 = float, class:^(steam)$, title:^(Recordings & Screenshots)$
windowrulev2 = float, class:^(steam)$, title:^(Steam Guard - Computer Authorization Required)$
windowrulev2 = float, title:^(Steam Keyboard)$
-windowrulev2 = workspace 2, class:^(org.telegram.desktop)$
-windowrulev2 = workspace 2, class:^(Element)$
+# windowrulev2 = workspace 8 silent, class:^(neomutt)$
+# windowrulev2 = workspace 9 silent, class:^(nchat)$
+# windowrulev2 = workspace 9 silent, class:^(Element)$
windowrulev2 = float, class:^(org.prismlauncher.PrismLauncher)$, title:Console window for.*Prism Launcher.*
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
index 18a20dc..2fa2286 100644
--- a/.config/waybar/config.jsonc
+++ b/.config/waybar/config.jsonc
@@ -34,7 +34,14 @@
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
- "format": "{icon}"
+ "format": "{icon}",
+ "format-icons": {
+ "8": "󰇮",
+ "9": ""
+ },
+ "persistent-workspaces": {
+ "*": [ 1, 2, 3, 4, 8, 9 ]
+ }
},
"custom/icon": {
"cursor": false,
diff --git a/.local/bin/spec b/.local/bin/spec
new file mode 100755
index 0000000..de12678
--- /dev/null
+++ b/.local/bin/spec
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+me=$(basename "$0")
+
+if [ -z "$1" ] ; then
+ exit 1;
+fi
+
+TEMP=$(mktemp -u -t "${me}" 2>/dev/null || mktemp -u -t "${me}"-XXXXXXXXXX)
+TEMPIMG="${TEMP}.png"
+TEMPTXT="${TEMP}.txt"
+
+basename "$1" > "${TEMPTXT}"
+
+ffmpeg -v quiet -y -i "$1" -filter_complex showspectrumpic=s=2560x1024,drawtext="expansion=none:textfile='${TEMPTXT}':x=(w-tw)/2:y=16:fontcolor='white':fontsize=20" "$TEMPIMG"
+exitcode=$?
+if [ $exitcode -ne 0 ] ; then
+ rm "$TEMPTXT"
+ exit $exitcode
+fi
+
+dummy=$(xdg-open "$TEMPIMG")
+rm "$TEMPIMG" "$TEMPTXT"
diff --git a/.local/bin/wrappers/telegram b/.local/bin/wrappers/telegram
new file mode 100755
index 0000000..a490573
--- /dev/null
+++ b/.local/bin/wrappers/telegram
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+footclient -a nchat -e nchat