From 9dbfb2168d604c4c36ea6a9d8744d44525750ad9 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 26 Nov 2025 14:47:53 +0100 Subject: [PATCH] Better screenshot, yuzzit magic space --- hyprland.conf | 3 +++ hyprscript | 7 ++++++- waybar/config | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hyprland.conf b/hyprland.conf index 372b05c..6c21e0d 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -40,6 +40,7 @@ $social = firefox "http://jdb.localhost/" "https://web.telegram.org" "https://we exec-once = $hyprscript stat exec-once = hyprpaper +exec-once = XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway QT_QPA_PLATFORM=wayland flameshot exec-once = hypridle exec-once = nm-applet exec-once = blueberry-tray @@ -286,10 +287,12 @@ bind = $mainMod SHIFT, code:19, exec, $hyprscript movetoworkspace 10 # Screenshot bind = , Print, exec, XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway QT_QPA_PLATFORM=wayland flameshot gui +# bind =, Print, exec, grim -g "$(slurp)" - | wl-copy # Example special workspace (scratchpad) bind = $mainMod, Q, togglespecialworkspace, a_social bind = $mainMod, S, togglespecialworkspace, b_mail +bind = $mainMod, D, togglespecialworkspace, c_yuzzit # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 diff --git a/hyprscript b/hyprscript index 52361a3..a032ec1 100755 --- a/hyprscript +++ b/hyprscript @@ -209,7 +209,12 @@ def monitor_stats(): cpu_percent = psutil.cpu_percent(interval=2) mem_percent = psutil.virtual_memory().percent battery = psutil.sensors_battery() - temps = psutil.sensors_temperatures(fahrenheit=False).get('k10temp') + all_temps = psutil.sensors_temperatures(fahrenheit=False) + + temps = all_temps.get('k10temp', None) + if temps is None: + temps = all_temps.get('coretemp') + temp = max([x.current for x in temps if x.label != 'Tctl']) temp_percent = 100 * min(max([temp - min_temp, 0]) / (max_temp - min_temp), 1) diff --git a/waybar/config b/waybar/config index b8febec..b663a68 100644 --- a/waybar/config +++ b/waybar/config @@ -37,7 +37,7 @@ "format-icons": { "a_social": "󰍥 ", "b_mail": " ", - "c_terminal": " ", + "c_yuzzit": "Y", "11": "1", "12": "2", "13": "3",