update tlp and bar
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
{ pkgs, ... }: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bind = [
|
||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Kitty
|
||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Terminal
|
||||
"$mod,E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
||||
# "$mod,B, exec, ${pkgs.qutebrowser}/bin/qutebrowser" # Qutebrowser
|
||||
"$mod,U, exec, ${pkgs.firefox}/bin/firefox" # Firefox
|
||||
# "$shiftMod,B, exec, ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden
|
||||
"$shiftMod,Q, exec, ${pkgs.hyprlock}/bin/hyprlock" # Lock
|
||||
"$mod,X, exec, powermenu" # Powermenu
|
||||
"$mod,SPACE, exec, menu" # Launcher
|
||||
@@ -32,14 +30,16 @@
|
||||
"$mod,l, movefocus, r" # Move focus Right
|
||||
"$mod,k, movefocus, u" # Move focus Up
|
||||
"$mod,j, movefocus, d" # Move focus Down
|
||||
"$shiftMod,j, swapnext" # Swap with next client
|
||||
"$shiftMod,k, swapnext, prev" # Swap with previous client
|
||||
"$ctrlMod,k, focusmonitor, -1" # Focus previous monitor
|
||||
"$ctrlMod,j, focusmonitor, 1" # Focus next monitor
|
||||
"$ctrlMod,h, layoutmsg, addmaster" # Add to master
|
||||
"$ctrlMod,l, layoutmsg, removemaster" # Remove from master
|
||||
|
||||
"$mod,PRINT, exec, screenshot window" # Screenshot window
|
||||
",PRINT, exec, screenshot monitor" # Screenshot monitor
|
||||
"$shiftMod,PRINT, exec, screenshot region" # Screenshot region
|
||||
"$mod,PRINT, exec, screenshot window swappy" # Screenshot window
|
||||
",PRINT, exec, screenshot monitor swappy" # Screenshot monitor
|
||||
"$shiftMod,PRINT, exec, screenshot region swappy" # Screenshot region
|
||||
"ALT,PRINT, exec, screenshot region swappy" # Screenshot region then edit
|
||||
|
||||
# "$shiftMod,S, exec, ${pkgs.qutebrowser}/bin/qutebrowser :open $(wofi --show dmenu -L 1 -p ' Search on internet')" # Search on internet with wofi
|
||||
@@ -47,7 +47,6 @@
|
||||
"$shiftMod,E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi
|
||||
"$mod,F2, exec, night-shift" # Toggle night shift
|
||||
"$mod,F3, exec, night-shift" # Toggle night shift
|
||||
"$mod,B, exec, hyprpanel-toggle" # Toggle hyprpanel
|
||||
] ++ (builtins.concatLists (builtins.genList (i:
|
||||
let ws = i + 1;
|
||||
in [
|
||||
|
||||
@@ -34,6 +34,8 @@ in {
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.variables = [ "--all" ];
|
||||
package =
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage =
|
||||
@@ -45,6 +47,7 @@ in {
|
||||
"$ctrlMod" = "SUPER_CTRL";
|
||||
|
||||
exec-once = [ "dbus-update-activation-environment --systemd --all" ];
|
||||
ecosystem = { no_update_news = true; };
|
||||
|
||||
plugin = { overview = { autoDrag = false; }; };
|
||||
|
||||
@@ -102,7 +105,10 @@ in {
|
||||
};
|
||||
|
||||
decoration = {
|
||||
blur = { enabled = if blur then "true" else "false"; };
|
||||
blur = {
|
||||
enabled = if blur then "true" else "false";
|
||||
size = 18;
|
||||
};
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 20;
|
||||
@@ -116,7 +122,7 @@ in {
|
||||
master = {
|
||||
new_status = true;
|
||||
allow_small_split = true;
|
||||
mfact = 0.5;
|
||||
mfact = 0.6;
|
||||
};
|
||||
|
||||
gestures = { workspace_swipe = true; };
|
||||
@@ -130,8 +136,34 @@ in {
|
||||
new_window_takes_over_fullscreen = 2;
|
||||
};
|
||||
|
||||
windowrulev2 =
|
||||
[ "float, tag:modal" "pin, tag:modal" "center, tag:modal" ];
|
||||
windowrulev2 = [
|
||||
"float, tag:modal"
|
||||
"pin, tag:modal"
|
||||
"center, tag:modal"
|
||||
"float, title:^(Media viewer)$"
|
||||
|
||||
# Bitwarden extension
|
||||
"float, title:^(.*Bitwarden Password Manager.*)$"
|
||||
|
||||
# make Firefox/Zen PiP window floating and sticky
|
||||
"float, title:^(Picture-in-Picture)$"
|
||||
"pin, title:^(Picture-in-Picture)$"
|
||||
|
||||
# idle inhibit while watching videos
|
||||
"idleinhibit focus, class:^(mpv|.+exe|celluloid)$"
|
||||
"idleinhibit focus, class:^(zen)$, title:^(.*YouTube.*)$"
|
||||
"idleinhibit fullscreen, class:^(zen)$"
|
||||
|
||||
"dimaround, class:^(gcr-prompter)$"
|
||||
"dimaround, class:^(xdg-desktop-portal-gtk)$"
|
||||
"dimaround, class:^(polkit-gnome-authentication-agent-1)$"
|
||||
"dimaround, class:^(zen)$, title:^(File Upload)$"
|
||||
|
||||
# fix xwayland apps
|
||||
"rounding 0, xwayland:1"
|
||||
"center, class:^(.*jetbrains.*)$, title:^(Confirm Exit|Open Project|win424|win201|splash)$"
|
||||
"size 640 400, class:^(.*jetbrains.*)$, title:^(splash)$"
|
||||
];
|
||||
|
||||
layerrule = [ "noanim, launcher" "noanim, ^ags-.*" ];
|
||||
|
||||
@@ -151,6 +183,6 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.targets.hyprland-session.Unit.Wants =
|
||||
[ "xdg-desktop-autostart.target" ];
|
||||
# systemd.user.targets.hyprland-session.Unit.Wants =
|
||||
# [ "xdg-desktop-autostart.target" ];
|
||||
}
|
||||
|
||||
@@ -3,32 +3,36 @@
|
||||
windowrulev2 = [
|
||||
"workspace 2, class:^(emacs)$"
|
||||
"workspace 3, class:^(kitty)$"
|
||||
"workspace 3, class:^(com.mitchellh.ghostty)$"
|
||||
"workspace 9, class:^(org.qutebrowser.qutebrowser)$"
|
||||
"workspace 9, title:^(Chromium)$"
|
||||
"fullscreen, class:^(wlogout)$"
|
||||
"float, class:^(Zotero)$"
|
||||
"size 810 200, class:^(Zotero)$,title:^(Quick Format Citation)*$"
|
||||
"float, class:^(firefox)$,title:^(Certificate for )*$"
|
||||
"float, class:^(firefox)$,title:^(.*Firefox — Sharing Indicator.*)$"
|
||||
"float, class:^(firefox)$,title:^(.*Presensi Mahasiswa.*)$"
|
||||
"float, class:(firefox),title:^(Extension)(.*)$"
|
||||
"float, class:^(firefox)$,title:^(Extension)(.*)$"
|
||||
"float, class:^(pcmanfm)$,title:^(Confirm File Replacing)$"
|
||||
"float, class:^(nemo)$,title:^(Confirm File Replacing)$"
|
||||
"float, title:^(Confirm File Replacing)$"
|
||||
"float, class:thunar,title:^(Rename.*)$"
|
||||
"float, class:^(org.inkscape.Inkscape)$"
|
||||
"float, class:^(nm-connection-editor)$"
|
||||
"float, class:^(.*blueman-manager.*)$"
|
||||
"size 530 300, class:^(.*blueman-manager.*)$"
|
||||
"move 100%-w-20 40, class:^(.*blueman-manager.*)$"
|
||||
"tag +portal, class:^(.*desktop-portal.*)$"
|
||||
"noborder, tag:portal"
|
||||
"noblur, class:portal"
|
||||
"noshadow, class:portal"
|
||||
"float, class:portal"
|
||||
"pin, class:portal"
|
||||
"noblur, tag:portal"
|
||||
"noshadow, tag:portal"
|
||||
"float, tag:portal"
|
||||
"pin, tag:portal"
|
||||
"pin, class:^(gcr-prompter)$"
|
||||
"float, title:^(Volume Control)$"
|
||||
"pin, title:^(Volume Control)$"
|
||||
"size 560 340, title:^(Volume Control)$"
|
||||
"move 100%-w-30 30, title:^(Volume Control)$"
|
||||
"move 100%-w-40 40, title:^(Volume Control)$"
|
||||
"float, class:^(spotube)$"
|
||||
"size 660 700, class:^(spotube)$"
|
||||
"move 100%-w-20 40, class:^(spotube)$"
|
||||
@@ -37,6 +41,7 @@
|
||||
"float, class:^(thunderbird)$,title:^(Edit Event:)$"
|
||||
"float, class:^(thunderbird)$,title:^(An error has occurred)$"
|
||||
"float, class:^(thunar)$,title:^(File Operation Progress)$"
|
||||
"float, class:^(firefox)$,title:^(.*Bitwarden Password Manager.*)$"
|
||||
"float, class:^(org.kde.polkit-kde-authentication-agent-1)$"
|
||||
"size 60% 55%, class:^(nwg-look)$"
|
||||
"center, class:^(nwg-look)$"
|
||||
@@ -44,6 +49,9 @@
|
||||
"float, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"size 440 220, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"center, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"stayfocused, class:(pinentry-)(.*)" # fix pinentry losing focus
|
||||
"rounding 10, class:kitty"
|
||||
# "float, class:.*xdg-desktop-portal.*"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user