Got a usb numpad and replaced sc with numbat

This commit is contained in:
Emmet 2024-03-21 19:04:08 -05:00
parent 1d568ad213
commit 372d7e4bbc
4 changed files with 23 additions and 4 deletions

View file

@ -76,7 +76,7 @@
users.users.${userSettings.username} = { users.users.${userSettings.username} = {
isNormalUser = true; isNormalUser = true;
description = userSettings.name; description = userSettings.name;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" "input" "dialout" ];
packages = []; packages = [];
uid = 1000; uid = 1000;
}; };

View file

@ -56,6 +56,7 @@
openvpn openvpn
protonmail-bridge protonmail-bridge
texliveSmall texliveSmall
numbat
wine wine
bottles bottles

View file

@ -20,9 +20,10 @@
pandoc pandoc
hwinfo hwinfo
pciutils pciutils
numbat
(pkgs.callPackage ../pkgs/smartcalc.nix { }) (pkgs.callPackage ../pkgs/smartcalc.nix { })
(pkgs.writeShellScriptBin "sc" ''smartcalc'') #(pkgs.writeShellScriptBin "sc" ''smartcalc'')
(pkgs.callPackage ../pkgs/pokemon-colorscripts.nix { }) #(pkgs.callPackage ../pkgs/pokemon-colorscripts.nix { })
#(pkgs.python3Packages.callPackage ../pkgs/impressive.nix { }) #(pkgs.python3Packages.callPackage ../pkgs/impressive.nix { })
(pkgs.writeShellScriptBin "airplane-mode" '' (pkgs.writeShellScriptBin "airplane-mode" ''
#!/bin/sh #!/bin/sh

View file

@ -110,6 +110,7 @@
bindm=SUPER,mouse:273,resizewindow bindm=SUPER,mouse:273,resizewindow
bind=SUPER,T,togglefloating bind=SUPER,T,togglefloating
bind=SUPER,G,exec,hyprworkspace 9; pegasus-fe; bind=SUPER,G,exec,hyprworkspace 9; pegasus-fe;
bind=,code:148,exec,''+ userSettings.term + " "+''-e numbat
bind=,code:107,exec,grim -g "$(slurp)" bind=,code:107,exec,grim -g "$(slurp)"
bind=SHIFT,code:107,exec,grim -g "$(slurp -o)" bind=SHIFT,code:107,exec,grim -g "$(slurp -o)"
@ -432,7 +433,7 @@
margin = "7 7 3 7"; margin = "7 7 3 7";
spacing = 2; spacing = 2;
modules-left = [ "custom/os" "custom/hyprprofile" "battery" "backlight" "pulseaudio" "cpu" "memory" ]; modules-left = [ "custom/os" "custom/hyprprofile" "battery" "backlight" "keyboard-state" "pulseaudio" "cpu" "memory" ];
modules-center = [ "hyprland/workspaces" ]; modules-center = [ "hyprland/workspaces" ];
modules-right = [ "idle_inhibitor" "tray" "clock" ]; modules-right = [ "idle_inhibitor" "tray" "clock" ];
@ -447,6 +448,14 @@
"interval" = 3; "interval" = 3;
"on-click" = "hyprprofile-dmenu"; "on-click" = "hyprprofile-dmenu";
}; };
"keyboard-state" = {
"numlock" = true;
"format" = " {icon} ";
"format-icons" = {
"locked" = "󰎠";
"unlocked" = "󱧓";
};
};
"hyprland/workspaces" = { "hyprland/workspaces" = {
"format" = "{icon}"; "format" = "{icon}";
"format-icons" = { "format-icons" = {
@ -702,6 +711,14 @@
color: #'' + config.lib.stylix.colors.base0A + ''; color: #'' + config.lib.stylix.colors.base0A + '';
} }
label.numlock {
color: #'' + config.lib.stylix.colors.base04 + '';
}
label.numlock.locked {
color: #'' + config.lib.stylix.colors.base0F + '';
}
#pulseaudio { #pulseaudio {
color: #'' + config.lib.stylix.colors.base0C + ''; color: #'' + config.lib.stylix.colors.base0C + '';
} }