feat: cleanup bindings, add disk module, tmux alias
This commit is contained in:
3
aliases/stmux.sh
Executable file
3
aliases/stmux.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
session_name=$(basename "$PWD")
|
||||||
|
|
||||||
|
tmux new -s "$session_name"
|
||||||
@@ -14,11 +14,18 @@
|
|||||||
"network",
|
"network",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
|
"disk",
|
||||||
"battery",
|
"battery",
|
||||||
"clock",
|
"clock",
|
||||||
"tray",
|
"tray",
|
||||||
],
|
],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
|
"disk": {
|
||||||
|
"interval": 30,
|
||||||
|
"path": "/",
|
||||||
|
"format": "{specific_free:0.2f}GiB",
|
||||||
|
"unit": "GiB",
|
||||||
|
},
|
||||||
"keyboard-state": {
|
"keyboard-state": {
|
||||||
"numlock": true,
|
"numlock": true,
|
||||||
"capslock": true,
|
"capslock": true,
|
||||||
|
|||||||
@@ -230,6 +230,13 @@ window#waybar.chromium {
|
|||||||
color: @fg-color;
|
color: @fg-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#disk {
|
||||||
|
padding: 0 5px;
|
||||||
|
margin: 0 4px;
|
||||||
|
background-color: @bg-color-5;
|
||||||
|
color: @fg-color;
|
||||||
|
}
|
||||||
|
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
|
|||||||
@@ -39,10 +39,6 @@
|
|||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
services.displayManager.ly.enable = true;
|
services.displayManager.ly.enable = true;
|
||||||
# services.displayManager.sddm = {
|
|
||||||
# enable = true;
|
|
||||||
# wayland.enable = true;
|
|
||||||
# };
|
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
|
|
||||||
home-manager.users.luca = {
|
home-manager.users.luca = {
|
||||||
@@ -62,7 +58,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"waybar".source = ../../custom/waybar;
|
waybar.source = ../../custom/waybar;
|
||||||
};
|
};
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -84,56 +80,48 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
plugins = with pkgs; [
|
|
||||||
hyprlandPlugins.hy3
|
|
||||||
];
|
|
||||||
settings = {
|
settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$terminal" = "ghostty";
|
"$terminal" = "ghostty";
|
||||||
"$menu" = "rofi -show drun -theme ~/.config/rofi/launcher.rasi";
|
"$menu" = "rofi -show drun -theme ~/.config/rofi/launcher.rasi";
|
||||||
bind = [
|
bind =
|
||||||
"$mod, Return, exec, $terminal"
|
[
|
||||||
"$mod SHIFT, Q, killactive"
|
"$mod, Return, exec, $terminal"
|
||||||
"$mod SHIFT, E, exit"
|
"$mod SHIFT, Q, killactive"
|
||||||
"$mod SHIFT, SPACE, togglefloating"
|
"$mod SHIFT, E, exit"
|
||||||
"$mod, d, exec, $menu"
|
"$mod SHIFT, SPACE, togglefloating"
|
||||||
"$mod, h, movefocus, l"
|
"$mod, d, exec, $menu"
|
||||||
"$mod, l, movefocus, r"
|
"$mod, h, movefocus, l"
|
||||||
"$mod, k, movefocus, u"
|
"$mod, l, movefocus, r"
|
||||||
"$mod, j, movefocus, d"
|
"$mod, k, movefocus, u"
|
||||||
|
"$mod, j, movefocus, d"
|
||||||
|
|
||||||
"$mod, 1, workspace, 1"
|
"$mod, 0, workspace, 10"
|
||||||
"$mod, 2, workspace, 2"
|
"$mod SHIFT, 0, movetoworkspacesilent, 10"
|
||||||
"$mod, 3, workspace, 3"
|
]
|
||||||
"$mod, 4, workspace, 4"
|
++ (builtins.concatLists (
|
||||||
"$mod, 5, workspace, 5"
|
builtins.genList (
|
||||||
"$mod, 6, workspace, 6"
|
i:
|
||||||
"$mod, 7, workspace, 7"
|
let
|
||||||
"$mod, 8, workspace, 8"
|
ws = i + 1;
|
||||||
"$mod, 9, workspace, 9"
|
in
|
||||||
"$mod, 0, workspace, 10"
|
[
|
||||||
"$mod SHIFT, 1, movetoworkspace, 1"
|
"$mod, ${toString ws}, workspace, ${toString ws}"
|
||||||
"$mod SHIFT, 2, movetoworkspace, 2"
|
"$mod SHIFT, ${toString ws}, movetoworkspacesilent, ${toString ws}"
|
||||||
"$mod SHIFT, 3, movetoworkspace, 3"
|
]
|
||||||
"$mod SHIFT, 4, movetoworkspace, 4"
|
) 9
|
||||||
"$mod SHIFT, 5, movetoworkspace, 5"
|
));
|
||||||
"$mod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
];
|
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mod, mouse:272, movewindow"
|
"$mod, mouse:272, movewindow"
|
||||||
"$mod, mouse:273, resizewindow"
|
"$mod, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
bindel = [
|
bindel = [
|
||||||
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
",XF86AudioRaiseVolume, exec, bash -c \"wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && vol=\\\$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print int(\\\$2 * 100)}') && notify-send -h int:value:\\\$vol -h string:synchronous:volume -u low \\\"Volume\\\"\""
|
||||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
",XF86AudioLowerVolume, exec, bash -c \"wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && vol=\\\$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print int(\\\$2 * 100)}') && notify-send -h int:value:\\\$vol -h string:synchronous:volume -u low \\\"Volume\\\"\""
|
||||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||||
",XF86MonBrightnessUp, exec, bash -c 'brightnessctl s +5% && perc=$(( \$(brightnessctl get) * 100 / \$(brightnessctl max) )) && notify-send \"Brightness\" -h int:value:\$perc'"
|
",XF86MonBrightnessUp, exec, bash -c 'brightnessctl s +5% && perc=$(( \$(brightnessctl get) * 100 / \$(brightnessctl max) )) && notify-send \"Brightness\" -h int:value:\$perc -h string:synchronous:brightness -u low'"
|
||||||
",XF86MonBrightnessDown, exec, bash -c 'brightnessctl s 5%- && perc=$(( \$(brightnessctl get) * 100 / \$(brightnessctl max) )) && notify-send \"Brightness\" -h int:value:\$perc'"
|
",XF86MonBrightnessDown, exec, bash -c 'brightnessctl s 5%- && perc=$(( \$(brightnessctl get) * 100 / \$(brightnessctl max) )) && notify-send \"Brightness\" -h int:value:\$perc -h string:synchronous:brightness -u low'"
|
||||||
];
|
];
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 0;
|
gaps_in = 0;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
home-manager.users.luca = {
|
home-manager.users.luca = {
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"rofi".source = ../../custom/rofi;
|
rofi.source = ../../custom/rofi;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user