feat: migrate tpanel to ags v3

This commit is contained in:
tux
2025-09-24 16:42:10 +05:30
parent 333e87796e
commit 7ce463a1b9
5 changed files with 21 additions and 43 deletions

View File

@@ -4,7 +4,7 @@
./hyprpaper.nix
];
home.packages = with pkgs; [astal];
home.packages = with pkgs; [ags];
wayland.windowManager.hyprland = {
enable = true;
@@ -192,7 +192,7 @@
bind = [
# apps
"SUPER, Return, exec, ${terminal}"
"SUPER, A, exec, astal -t app-launcher"
"SUPER, A, exec, ags toggle app-launcher"
"SUPER, F, exec, ${filemanager}"
"SUPER, E, exec, ${editor}"
"SUPER, B, exec, ${browser}"
@@ -204,9 +204,9 @@
"SUPER_SHIFT, Return, exec, ${floating_terminal}"
"SUPER_SHIFT, S, exec, flameshot gui"
# astal
"SUPER_SHIFT, R, exec, astal -q; ${pkgs.tpanel}/bin/tpanel"
"SUPER_SHIFT, B, exec, astal toggle-bar"
# ags
"SUPER_SHIFT, R, exec, ags quit; ${pkgs.tpanel}/bin/tpanel"
"SUPER_SHIFT, B, exec, ags toggle bar"
# hyprland
"SUPER, Q, killactive"

View File

@@ -9,19 +9,19 @@
(pkgs.writeShellScriptBin "mirror-display" ''
hyprctl keyword monitor "eDP-1,2560x1440@90,0x0,1" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1,mirror,eDP-1" \
&& astal -q \
&& ags quit \
&& ${pkgs.tpanel}/bin/tpanel &
'')
(pkgs.writeShellScriptBin "extend-display" ''
hyprctl keyword monitor "eDP-1,2560x1440@90,0x0,1" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x-1440,1" \
&& astal -q \
&& ags quit \
&& ${pkgs.tpanel}/bin/tpanel &
'')
(pkgs.writeShellScriptBin "dock-display" ''
hyprctl keyword monitor "eDP-1,disable" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1" \
&& astal -q \
&& ags quit \
&& ${pkgs.tpanel}/bin/tpanel &
'')
];