diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-27 18:32:37 +0800 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-27 18:32:37 +0800 |
commit | 5558d0d76128fd7655ad540f62721d63cf966e16 (patch) | |
tree | 602de6ce7ac013845578e5895498ba17ffb8d503 | |
parent | ab9b2485518ccb9abd7fcb0dd5524f29543e87b9 (diff) | |
download | nixos-configuration-5558d0d76128fd7655ad540f62721d63cf966e16.tar.gz nixos-configuration-5558d0d76128fd7655ad540f62721d63cf966e16.tar.bz2 nixos-configuration-5558d0d76128fd7655ad540f62721d63cf966e16.zip |
feat: customization options for AGS
-rw-r--r-- | home-manager/stvnliu/ags/config/config.js | 4 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/hyprland.nix | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/home-manager/stvnliu/ags/config/config.js b/home-manager/stvnliu/ags/config/config.js index a079594..ea1d86f 100644 --- a/home-manager/stvnliu/ags/config/config.js +++ b/home-manager/stvnliu/ags/config/config.js @@ -17,7 +17,7 @@ const focusedTitle = Widget.Label({ visible: hyprland.active.client.bind('address') .as(addr => addr !== "0x"), }) - +const wsSymbols = ["壹", "貳", "叁", "肆", "伍", "陸", "柒", "捌", "玖", "拾"] const dispatch = ws => hyprland.messageAsync(`dispatch workspace ${ws}`); const Workspaces = () => Widget.EventBox({ @@ -26,7 +26,7 @@ const Workspaces = () => Widget.EventBox({ child: Widget.Box({ children: Array.from({ length: 10 }, (_, i) => i + 1).map(i => Widget.Button({ attribute: i, - label: `${i}`, + label: `${wsSymbols[i - 1]}`, onClicked: () => dispatch(i), class_name: i === hyprland.active.workspace.id ? "focused" : "" diff --git a/home-manager/stvnliu/hypr/hyprland.nix b/home-manager/stvnliu/hypr/hyprland.nix index 916f05f..8fedb7f 100644 --- a/home-manager/stvnliu/hypr/hyprland.nix +++ b/home-manager/stvnliu/hypr/hyprland.nix @@ -39,7 +39,7 @@ ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ]; bind = let - terminalCmd = "${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}"; + terminalCmd = "${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85"; screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png"; in [ @@ -61,8 +61,10 @@ "$mod, F, exec, ${pkgs.firefox}/bin/firefox" "$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm" # foot terminal - "$mod, Return, exec, ${terminalCmd}" - "$mod SHIFT, Return, exec, [float] ${terminalCmd}" + "$mod, Return, exec, ${terminalCmd} ${config.myShells.defaultShell}" + "$mod SHIFT, Return, exec, [float] ${terminalCmd} ${config.myShells.defaultShell}" + + "$mod, N, exec, [float] ${terminalCmd} ${pkgs.networkmanager}/bin/nmtui" # vimkeys navigation "$mod, H, movefocus, l" |