This commit is contained in:
@@ -3,14 +3,18 @@
|
||||
bind = [
|
||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Kitty
|
||||
"$mod,E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
||||
"$mod,B, exec, ${pkgs.qutebrowser}/bin/qutebrowser" # Qutebrowser
|
||||
"$mod,K, exec, ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden
|
||||
"$mod,L, exec, ${pkgs.hyprlock}/bin/hyprlock" # Lock
|
||||
# "$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
|
||||
"$mod,C, exec, quickmenu" # Quickmenu
|
||||
"$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus
|
||||
"$mod,TAB, overview:toggle" # Overview
|
||||
# "$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus
|
||||
"$mod,TAB, workspace, previous" # Overview
|
||||
# "$shiftMod,TAB, overview:toggle" # Overview
|
||||
"$mod, bracketright, workspace, e+1"
|
||||
"$mod, bracketleft, workspace, e-1"
|
||||
|
||||
"$mod,Q, killactive," # Close window
|
||||
"$mod,T, togglefloating," # Toggle Floating
|
||||
@@ -24,12 +28,21 @@
|
||||
"$shiftMod,left, layoutmsg, addmaster" # Add to master
|
||||
"$shiftMod,right, layoutmsg, removemaster" # Remove from master
|
||||
|
||||
"$mod,h, movefocus, l" # Move focus left
|
||||
"$mod,l, movefocus, r" # Move focus Right
|
||||
"$mod,k, movefocus, u" # Move focus Up
|
||||
"$mod,j, movefocus, d" # Move focus Down
|
||||
"$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
|
||||
"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
|
||||
# "$shiftMod,S, exec, ${pkgs.qutebrowser}/bin/qutebrowser :open $(wofi --show dmenu -L 1 -p ' Search on internet')" # Search on internet with wofi
|
||||
"$shiftMod,C, exec, clipboard" # Clipboard picker with wofi
|
||||
"$shiftMod,E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi
|
||||
"$mod,F2, exec, night-shift" # Toggle night shift
|
||||
@@ -61,5 +74,10 @@
|
||||
",XF86MonBrightnessDown, exec, brightness-down" # Brightness Down
|
||||
];
|
||||
|
||||
binds = {
|
||||
workspace_back_and_forth = false;
|
||||
allow_workspace_cycles = true;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
# So best window tiling manager
|
||||
{ pkgs, config, inputs, ... }:
|
||||
let
|
||||
border-size = config.var.theme.border-size;
|
||||
gaps-in = config.var.theme.gaps-in;
|
||||
gaps-out = config.var.theme.gaps-out;
|
||||
active-opacity = config.var.theme.active-opacity;
|
||||
inactive-opacity = config.var.theme.inactive-opacity;
|
||||
rounding = config.var.theme.rounding;
|
||||
blur = config.var.theme.blur;
|
||||
keyboardLayout = config.var.keyboardLayout;
|
||||
inherit (config.var.theme)
|
||||
border-size gaps-in gaps-out active-opacity inactive-opacity rounding blur;
|
||||
inherit (config.var) keyboardLayout;
|
||||
# border-size = config.var.theme.border-size;
|
||||
# gaps-in = config.var.theme.gaps-in;
|
||||
# gaps-out = config.var.theme.gaps-out;
|
||||
# active-opacity = config.var.theme.active-opacity;
|
||||
# inactive-opacity = config.var.theme.inactive-opacity;
|
||||
# rounding = config.var.theme.rounding;
|
||||
# blur = config.var.theme.blur;
|
||||
# keyboardLayout = config.var.keyboardLayout;
|
||||
in {
|
||||
|
||||
imports = [ ./animations.nix ./bindings.nix ./polkitagent.nix ];
|
||||
imports =
|
||||
[ ./animations.nix ./bindings.nix ./polkitagent.nix ./windowrule.nix ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
qt5.qtwayland
|
||||
@@ -39,31 +43,40 @@ in {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
variables = [ "--all" ];
|
||||
};
|
||||
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||
|
||||
plugins = [ inputs.hyprspace.packages.${pkgs.system}.Hyprspace ];
|
||||
# plugins = [ inputs.hyprspace.packages."${pkgs.system}".Hyprspace ];
|
||||
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
"$shiftMod" = "SUPER_SHIFT";
|
||||
"$ctrlMod" = "SUPER_CTRL";
|
||||
|
||||
exec-once = [
|
||||
"${pkgs.bitwarden}/bin/bitwarden"
|
||||
# "${pkgs.bitwarden}/bin/bitwarden"
|
||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||
];
|
||||
|
||||
plugin = { overview = { autoDrag = false; }; };
|
||||
|
||||
monitor = [
|
||||
"eDP-2,highres,0x0,1"
|
||||
"DP-7, disable"
|
||||
"DP-8, disable"
|
||||
"DP-9, disable"
|
||||
"HDMI-A-1,3440x1440@99.98,auto,1"
|
||||
"eDP-1,preffered,0x0,1"
|
||||
"desc:LG Electronics 16EN33 305INKH5P181,preferred,0x-768,1"
|
||||
",prefered,auto,1"
|
||||
];
|
||||
|
||||
# workspace = [
|
||||
# "1,monitor:eDP-1"
|
||||
# "2,monitor:eDP-1"
|
||||
# "3,monitor:eDP-1"
|
||||
# "4,monitor:eDP-1"
|
||||
# "5,monitor:eDP-1"
|
||||
# ];
|
||||
|
||||
env = [
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||
@@ -78,7 +91,7 @@ in {
|
||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
||||
"GTK_THEME,FlatColor:dark"
|
||||
"GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc"
|
||||
"GTK2_RC_FILES,/home/dim/.local/share/themes/FlatColor/gtk-2.0/gtkrc"
|
||||
"__GL_GSYNC_ALLOWED,0"
|
||||
"__GL_VRR_ALLOWED,0"
|
||||
"DISABLE_QT5_COMPAT,0"
|
||||
@@ -90,12 +103,12 @@ in {
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"SDL_VIDEODRIVER,wayland"
|
||||
"CLUTTER_BACKEND,wayland"
|
||||
"AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1" # CHANGEME: Related to the GPU
|
||||
# "AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1" # CHANGEME: Related to the GPU
|
||||
];
|
||||
|
||||
cursor = {
|
||||
no_hardware_cursors = true;
|
||||
default_monitor = "eDP-2";
|
||||
default_monitor = "eDP-1";
|
||||
};
|
||||
|
||||
general = {
|
||||
@@ -108,13 +121,15 @@ in {
|
||||
};
|
||||
|
||||
decoration = {
|
||||
blur = { enabled = if blur then "true" else "false"; };
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 20;
|
||||
render_power = 3;
|
||||
};
|
||||
active_opacity = active-opacity;
|
||||
inactive_opacity = inactive-opacity;
|
||||
rounding = rounding;
|
||||
drop_shadow = true;
|
||||
shadow_range = 20;
|
||||
shadow_render_power = 3;
|
||||
blur = { enabled = if blur then "true" else "false"; };
|
||||
};
|
||||
|
||||
master = {
|
||||
@@ -142,9 +157,9 @@ in {
|
||||
input = {
|
||||
kb_layout = keyboardLayout;
|
||||
|
||||
kb_options = "caps:escape";
|
||||
# kb_options = "caps:escape";
|
||||
follow_mouse = 1;
|
||||
sensitivity = 0.5;
|
||||
sensitivity = 0;
|
||||
repeat_delay = 300;
|
||||
repeat_rate = 50;
|
||||
numlock_by_default = true;
|
||||
@@ -154,7 +169,6 @@ in {
|
||||
clickfinger_behavior = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
systemd.user.targets.hyprland-session.Unit.Wants =
|
||||
|
||||
47
home/system/hyprland/windowrule.nix
Normal file
47
home/system/hyprland/windowrule.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ pkgs, ... }: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
windowrulev2 = [
|
||||
"workspace 2, class:^(emacs)$"
|
||||
"workspace 3, class:^(kitty)$"
|
||||
"workspace 9, class:^(org.qutebrowser.qutebrowser)$"
|
||||
"workspace 9, title:^(Chromium)$"
|
||||
"fullscreen, class:^(wlogout)$"
|
||||
"float, class:^(Zotero)$"
|
||||
"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:^(pcmanfm)$,title:^(Confirm File Replacing)$"
|
||||
"float, class:^(nemo)$,title:^(Confirm File Replacing)$"
|
||||
"float, class:^(nm-connection-editor)$"
|
||||
"float, class:^(.*blueman-manager.*)$"
|
||||
"size 530 300, class:^(.*blueman-manager.*)$"
|
||||
"move 100%-w-20 40, class:^(.*blueman-manager.*)$"
|
||||
"noborder, class:^(.*dg-desktop-portal-.*)$"
|
||||
"noblur, class:^(.*dg-desktop-portal-.*)$"
|
||||
"noshadow, class:^(.*dg-desktop-portal-.*)$"
|
||||
"float, class:^(*.dg-desktop-portal-.*)$"
|
||||
"pin, class:^(*.dg-desktop-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)$"
|
||||
"float, class:^(spotube)$"
|
||||
"size 660 700, class:^(spotube)$"
|
||||
"move 100%-w-20 40, class:^(spotube)$"
|
||||
"float, title:^(pve - Proxmox Console - Chromium)$"
|
||||
"float, class:^(thunderbird)$,title:^(Reminders)$"
|
||||
"float, class:^(thunderbird)$,title:^(Edit Event:)$"
|
||||
"float, class:^(thunderbird)$,title:^(An error has occurred)$"
|
||||
"float, class:^(thunar)$,title:^(File Operation Progress)$"
|
||||
"float, class:^(org.kde.polkit-kde-authentication-agent-1)$"
|
||||
"size 60% 55%, class:^(nwg-look)$"
|
||||
"center, class:^(nwg-look)$"
|
||||
"fullscreen, class:^(cool-retro-term.cool-retro-term)$"
|
||||
"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)$"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user