nixos-config/user/wm/hyprland/hyprland.nix

1380 lines
46 KiB
Nix
Raw Normal View History

{ inputs, config, lib, pkgs, userSettings, systemSettings, pkgs-nwg-dock-hyprland, ... }: let
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
imports = [
../../app/terminal/alacritty.nix
../../app/terminal/kitty.nix
2023-08-19 09:14:34 +05:30
(import ../../app/dmenu-scripts/networkmanager-dmenu.nix {
2024-01-14 07:31:44 +05:30
dmenu_command = "fuzzel -d"; inherit config lib pkgs;
2023-08-19 09:14:34 +05:30
})
../input/nihongo.nix
] ++
(if (systemSettings.profile == "personal") then
[ (import ./hyprprofiles/hyprprofiles.nix {
dmenuCmd = "fuzzel -d"; inherit config lib pkgs; })]
else
[]);
2023-09-04 21:13:29 +05:30
gtk.cursorTheme = {
package = pkgs.quintom-cursor-theme;
name = if (config.stylix.polarity == "light") then "Quintom_Ink" else "Quintom_Snow";
size = 36;
};
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
plugins = [
inputs.hyprland-plugins.packages.${pkgs.system}.hyprtrails
inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo
2024-06-26 07:00:45 +05:30
inputs.hyprgrass.packages.${pkgs.system}.default
];
2023-08-19 09:14:34 +05:30
settings = { };
extraConfig = ''
2024-08-16 08:20:20 +05:30
exec-once = dbus-update-activation-environment --systemd DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_SESSION_DESKTOP=Hyprland XDG_CURRENT_DESKTOP=Hyprland XDG_SESSION_TYPE=wayland
2023-09-04 21:13:29 +05:30
exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + ''
2023-11-04 06:22:05 +05:30
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
2024-08-16 08:20:20 +05:30
env = XDG_SESSION_TYPE,wayland
env = WLR_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = CLUTTER_BACKEND,wayland
2024-07-30 03:38:56 +05:30
env = GDK_PIXBUF_MODULE_FILE,${pkgs.librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
exec-once = hyprprofile Default
2023-09-04 21:13:29 +05:30
exec-once = emacs --daemon
2024-01-04 06:16:17 +05:30
exec-once = ydotoold
2024-03-19 07:38:08 +05:30
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
2023-08-14 03:34:21 +05:30
exec-once = nm-applet
2023-10-08 01:14:13 +05:30
exec-once = blueman-applet
2023-08-14 03:34:21 +05:30
exec-once = GOMAXPROCS=1 syncthing --no-browser
exec-once = protonmail-bridge --noninteractive
exec-once = waybar
2023-08-14 01:46:19 +05:30
exec-once = hypridle
2024-06-02 20:00:13 +05:30
exec-once = sleep 5 && libinput-gestures
exec-once = obs-notification-mute-daemon
2023-09-30 22:27:32 +05:30
2024-06-02 03:28:50 +05:30
exec-once = hyprpaper
2024-06-06 07:35:00 +05:30
bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.0
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
bezier = linear, 0.0, 0.0, 1.0, 1.0
animations {
enabled = yes
animation = windowsIn, 1, 6, winIn, popin
animation = windowsOut, 1, 5, winOut, popin
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 10, default
animation = borderangle, 1, 100, linear, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
animation = windows, 1, 6, wind, slide
animation = specialWorkspace, 1, 6, default, slidefadevert -50%
2024-06-06 07:35:00 +05:30
}
general {
layout = master
2024-06-06 07:35:00 +05:30
border_size = 5
col.active_border = 0xff'' + config.lib.stylix.colors.base08 + " " + ''0xff'' + config.lib.stylix.colors.base09 + " " + ''0xff'' + config.lib.stylix.colors.base0A + " " + ''0xff'' + config.lib.stylix.colors.base0B + " " + ''0xff'' + config.lib.stylix.colors.base0C + " " + ''0xff'' + config.lib.stylix.colors.base0D + " " + ''0xff'' + config.lib.stylix.colors.base0E + " " + ''0xff'' + config.lib.stylix.colors.base0F + " " + ''270deg
2023-08-19 09:14:34 +05:30
2024-06-06 07:35:00 +05:30
col.inactive_border = 0xaa'' + config.lib.stylix.colors.base02 + ''
2023-08-19 09:14:34 +05:30
resize_on_border = true
gaps_in = 7
gaps_out = 7
}
cursor {
no_warps = false
inactive_timeout = 30
}
plugin {
hyprtrails {
color = rgba(''+config.lib.stylix.colors.base08+''55)
}
hyprexpo {
columns = 3
gap_size = 5
bg_col = rgb(''+config.lib.stylix.colors.base00+'')
workspace_method = first 1 # [center/first] [workspace] e.g. first 1 or center m+1
enable_gesture = false # laptop touchpad
}
2024-06-26 07:00:45 +05:30
touch_gestures {
sensitivity = 4.0
long_press_delay = 260
hyprgrass-bind = , edge:r:l, exec, hyprnome
hyprgrass-bind = , edge:l:r, exec, hyprnome --previous
hyprgrass-bind = , swipe:3:d, exec, nwggrid-wrapper
2024-06-02 20:00:31 +05:30
hyprgrass-bind = , swipe:3:u, hyprexpo:expo, toggleoverview
2024-06-26 07:00:45 +05:30
hyprgrass-bind = , swipe:3:d, exec, nwggrid-wrapper
2024-06-26 07:00:45 +05:30
hyprgrass-bind = , swipe:3:l, exec, hyprnome --previous
hyprgrass-bind = , swipe:3:r, exec, hyprnome
2024-06-02 20:00:31 +05:30
2024-06-26 07:00:45 +05:30
hyprgrass-bind = , swipe:4:u, movewindow,u
hyprgrass-bind = , swipe:4:d, movewindow,d
hyprgrass-bind = , swipe:4:l, movewindow,l
hyprgrass-bind = , swipe:4:r, movewindow,r
2024-06-02 20:00:31 +05:30
2024-06-26 07:00:45 +05:30
hyprgrass-bind = , tap:3, fullscreen,1
hyprgrass-bind = , tap:4, fullscreen,0
2024-06-02 20:00:31 +05:30
2024-06-26 07:00:45 +05:30
hyprgrass-bindm = , longpress:2, movewindow
hyprgrass-bindm = , longpress:3, resizewindow
}
}
2023-09-04 03:44:30 +05:30
2024-07-11 23:47:30 +05:30
bind=SUPER,code:9,exec,nwggrid-wrapper
bind=SUPER,code:66,exec,nwggrid-wrapper
2023-08-19 09:14:34 +05:30
bind=SUPER,SPACE,fullscreen,1
2024-02-19 06:28:37 +05:30
bind=SUPERSHIFT,F,fullscreen,0
bind=SUPER,Y,workspaceopt,allfloat
2023-08-19 09:14:34 +05:30
bind=ALT,TAB,cyclenext
bind=ALT,TAB,bringactivetotop
2023-08-19 09:14:34 +05:30
bind=ALTSHIFT,TAB,cyclenext,prev
bind=ALTSHIFT,TAB,bringactivetotop
bind=SUPER,TAB,hyprexpo:expo, toggleoverview
2024-02-19 06:28:37 +05:30
bind=SUPER,V,exec,wl-copy $(wl-paste | tr '\n' ' ')
bind=SUPERSHIFT,T,exec,screenshot-ocr
2024-04-22 01:10:41 +05:30
bind=CTRLALT,Delete,exec,hyprctl kill
bind=SUPERSHIFT,K,exec,hyprctl kill
2024-05-18 07:25:15 +05:30
bind=SUPER,W,exec,nwg-dock-wrapper
2023-08-19 09:14:34 +05:30
2024-07-20 22:03:05 +05:30
bind=,code:172,exec,lollypop -t
2024-08-20 04:45:53 +05:30
bind=,code:208,exec,lollypop -t
bind=,code:209,exec,lollypop -t
2024-07-20 22:03:05 +05:30
bind=,code:174,exec,lollypop -s
bind=,code:171,exec,lollypop -n
bind=,code:173,exec,lollypop -p
2023-09-04 21:47:21 +05:30
bind = SUPER,R,pass,^(com\.obsproject\.Studio)$
bind = SUPERSHIFT,R,pass,^(com\.obsproject\.Studio)$
bind=SUPER,RETURN,exec,'' + userSettings.term + ''
2023-08-19 09:14:34 +05:30
bind=SUPER,A,exec,'' + userSettings.spawnEditor + ''
2023-08-19 09:14:34 +05:30
bind=SUPER,S,exec,'' + userSettings.spawnBrowser + ''
2023-08-19 09:14:34 +05:30
bind=SUPERCTRL,S,exec,container-open # qutebrowser only
bind=SUPERCTRL,R,exec,phoenix refresh
2023-08-19 09:14:34 +05:30
bind=SUPER,code:47,exec,fuzzel
bind=SUPER,X,exec,fnottctl dismiss
bind=SUPERSHIFT,X,exec,fnottctl dismiss all
bind=SUPER,Q,killactive
bind=SUPERSHIFT,Q,exit
bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow
bind=SUPER,T,togglefloating
bind=SUPER,G,exec,hyprctl dispatch focusworkspaceoncurrentmonitor 9 && pegasus-fe;
bind=,code:148,exec,''+ userSettings.term + " "+''-e numbat
2023-08-19 09:14:34 +05:30
bind=,code:107,exec,grim -g "$(slurp)"
bind=SHIFT,code:107,exec,grim -g "$(slurp -o)"
bind=SUPER,code:107,exec,grim
bind=CTRL,code:107,exec,grim -g "$(slurp)" - | wl-copy
bind=SHIFTCTRL,code:107,exec,grim -g "$(slurp -o)" - | wl-copy
bind=SUPERCTRL,code:107,exec,grim - | wl-copy
2024-07-31 05:13:10 +05:30
bind=,code:122,exec,swayosd-client --output-volume lower
bind=,code:123,exec,swayosd-client --output-volume raise
bind=,code:121,exec,swayosd-client --output-volume mute-toggle
bind=,code:256,exec,swayosd-client --output-volume mute-toggle
bind=SHIFT,code:122,exec,swayosd-client --output-volume lower
bind=SHIFT,code:123,exec,swayosd-client --output-volume raise
bind=,code:232,exec,swayosd-client --brightness lower
bind=,code:233,exec,swayosd-client --brightness raise
2023-08-19 09:14:34 +05:30
bind=,code:237,exec,brightnessctl --device='asus::kbd_backlight' set 1-
bind=,code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1
bind=,code:255,exec,airplane-mode
bind=SUPER,C,exec,wl-copy $(hyprpicker)
2023-08-19 09:14:34 +05:30
bind=SUPERSHIFT,S,exec,systemctl suspend
2024-04-05 03:29:18 +05:30
bindl=,switch:on:Lid Switch,exec,loginctl lock-session
bind=SUPERCTRL,L,exec,loginctl lock-session
2023-08-19 09:14:34 +05:30
bind=SUPER,H,movefocus,l
bind=SUPER,J,movefocus,d
bind=SUPER,K,movefocus,u
bind=SUPER,L,movefocus,r
bind=SUPERSHIFT,H,movewindow,l
bind=SUPERSHIFT,J,movewindow,d
bind=SUPERSHIFT,K,movewindow,u
bind=SUPERSHIFT,L,movewindow,r
bind=SUPER,1,focusworkspaceoncurrentmonitor,1
bind=SUPER,2,focusworkspaceoncurrentmonitor,2
bind=SUPER,3,focusworkspaceoncurrentmonitor,3
bind=SUPER,4,focusworkspaceoncurrentmonitor,4
bind=SUPER,5,focusworkspaceoncurrentmonitor,5
bind=SUPER,6,focusworkspaceoncurrentmonitor,6
bind=SUPER,7,focusworkspaceoncurrentmonitor,7
bind=SUPER,8,focusworkspaceoncurrentmonitor,8
bind=SUPER,9,focusworkspaceoncurrentmonitor,9
2023-08-19 09:14:34 +05:30
bind=SUPERCTRL,right,exec,hyprnome
bind=SUPERCTRL,left,exec,hyprnome --previous
bind=SUPERSHIFT,right,exec,hyprnome --move
bind=SUPERSHIFT,left,exec,hyprnome --previous --move
2023-08-19 09:14:34 +05:30
bind=SUPERSHIFT,1,movetoworkspace,1
bind=SUPERSHIFT,2,movetoworkspace,2
bind=SUPERSHIFT,3,movetoworkspace,3
bind=SUPERSHIFT,4,movetoworkspace,4
bind=SUPERSHIFT,5,movetoworkspace,5
bind=SUPERSHIFT,6,movetoworkspace,6
bind=SUPERSHIFT,7,movetoworkspace,7
bind=SUPERSHIFT,8,movetoworkspace,8
bind=SUPERSHIFT,9,movetoworkspace,9
bind=SUPER,Z,exec,if hyprctl clients | grep scratch_term; then echo "scratch_term respawn not needed"; else alacritty --class scratch_term; fi
bind=SUPER,Z,togglespecialworkspace,scratch_term
bind=SUPER,F,exec,if hyprctl clients | grep scratch_ranger; then echo "scratch_ranger respawn not needed"; else kitty --class scratch_ranger -e ranger; fi
bind=SUPER,F,togglespecialworkspace,scratch_ranger
bind=SUPER,N,exec,if hyprctl clients | grep scratch_numbat; then echo "scratch_ranger respawn not needed"; else alacritty --class scratch_numbat -e numbat; fi
bind=SUPER,N,togglespecialworkspace,scratch_numbat
bind=SUPER,M,exec,if hyprctl clients | grep lollypop; then echo "scratch_ranger respawn not needed"; else lollypop; fi
bind=SUPER,M,togglespecialworkspace,scratch_music
bind=SUPER,B,exec,if hyprctl clients | grep scratch_btm; then echo "scratch_ranger respawn not needed"; else alacritty --class scratch_btm -e btm; fi
bind=SUPER,B,togglespecialworkspace,scratch_btm
bind=SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_ranger respawn not needed"; else element-desktop; fi
bind=SUPER,D,togglespecialworkspace,scratch_element
bind=SUPER,code:172,exec,togglespecialworkspace,scratch_pavucontrol
bind=SUPER,code:172,exec,if hyprctl clients | grep pavucontrol; then echo "scratch_ranger respawn not needed"; else pavucontrol; fi
2023-08-19 09:14:34 +05:30
$scratchpadsize = size 80% 85%
$scratch_term = class:^(scratch_term)$
windowrulev2 = float,$scratch_term
windowrulev2 = $scratchpadsize,$scratch_term
windowrulev2 = workspace special:scratch_term ,$scratch_term
windowrulev2 = center,$scratch_term
$scratch_ranger = class:^(scratch_ranger)$
windowrulev2 = float,$scratch_ranger
windowrulev2 = $scratchpadsize,$scratch_ranger
windowrulev2 = workspace special:scratch_ranger silent,$scratch_ranger
windowrulev2 = center,$scratch_ranger
$scratch_numbat = class:^(scratch_numbat)$
windowrulev2 = float,$scratch_numbat
windowrulev2 = $scratchpadsize,$scratch_numbat
windowrulev2 = workspace special:scratch_numbat silent,$scratch_numbat
windowrulev2 = center,$scratch_numbat
$scratch_btm = class:^(scratch_btm)$
windowrulev2 = float,$scratch_btm
windowrulev2 = $scratchpadsize,$scratch_btm
windowrulev2 = workspace special:scratch_btm silent,$scratch_btm
windowrulev2 = center,$scratch_btm
2023-08-19 09:14:34 +05:30
2024-05-21 07:47:46 +05:30
windowrulev2 = float,class:^(Element)$
windowrulev2 = size 85% 90%,class:^(Element)$
windowrulev2 = workspace special:scratch_element silent,class:^(Element)$
2024-05-21 07:47:46 +05:30
windowrulev2 = center,class:^(Element)$
2024-05-18 07:24:47 +05:30
2024-07-20 22:03:05 +05:30
windowrulev2 = float,class:^(lollypop)$
windowrulev2 = size 85% 90%,class:^(lollypop)$
2024-08-16 08:20:10 +05:30
windowrulev2 = workspace special:scratch_music silent,class:^(lollypop)$
2024-07-20 22:03:05 +05:30
windowrulev2 = center,class:^(lollypop)$
2024-04-22 01:00:14 +05:30
$savetodisk = title:^(Save to Disk)$
windowrulev2 = float,$savetodisk
windowrulev2 = size 70% 75%,$savetodisk
windowrulev2 = center,$savetodisk
$pavucontrol = class:^(org.pulseaudio.pavucontrol)$
2023-09-11 07:44:35 +05:30
windowrulev2 = float,$pavucontrol
windowrulev2 = size 86% 40%,$pavucontrol
windowrulev2 = move 50% 6%,$pavucontrol
windowrulev2 = workspace special silent,$pavucontrol
windowrulev2 = opacity 0.80,$pavucontrol
$miniframe = title:\*Minibuf.*
windowrulev2 = float,$miniframe
windowrulev2 = size 64% 50%,$miniframe
windowrulev2 = move 18% 25%,$miniframe
windowrulev2 = animation popin 1 20,$miniframe
2023-12-30 22:35:40 +05:30
windowrulev2 = float,class:^(pokefinder)$
2024-08-20 04:45:45 +05:30
windowrulev2 = float,class:^(Waydroid)$
2023-12-30 22:35:40 +05:30
2023-09-10 06:07:14 +05:30
windowrulev2 = opacity 0.80,title:ORUI
windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1
2024-06-15 23:12:10 +05:30
windowrulev2 = opacity 0.85,class:^(Element)$
2024-07-20 22:03:05 +05:30
windowrulev2 = opacity 0.85,class:^(lollypop)$
windowrulev2 = opacity 1.0,class:^(Brave-browser),fullscreen:1
windowrulev2 = opacity 1.0,class:^(librewolf),fullscreen:1
2024-06-15 23:12:10 +05:30
windowrulev2 = opacity 0.85,title:^(My Local Dashboard Awesome Homepage - qutebrowser)$
windowrulev2 = opacity 0.85,title:\[.*\] - My Local Dashboard Awesome Homepage
windowrulev2 = opacity 0.85,class:^(org.keepassxc.KeePassXC)$
windowrulev2 = opacity 0.85,class:^(org.gnome.Nautilus)$
windowrulev2 = opacity 0.85,class:^(org.gnome.Nautilus)$
2023-09-08 06:10:15 +05:30
layerrule = blur,waybar
2024-05-12 09:03:53 +05:30
layerrule = xray,waybar
blurls = waybar
layerrule = blur,launcher # fuzzel
blurls = launcher # fuzzel
layerrule = blur,gtk-layer-shell
layerrule = xray,gtk-layer-shell
blurls = gtk-layer-shell
2024-06-02 20:00:13 +05:30
layerrule = blur,~nwggrid
layerrule = xray 1,~nwggrid
layerrule = animation fade,~nwggrid
2024-06-02 20:00:13 +05:30
blurls = ~nwggrid
bind=SUPER,equal, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 + 0.5}')"
bind=SUPER,minus, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 - 0.5}')"
2023-08-19 09:14:34 +05:30
bind=SUPER,I,exec,networkmanager_dmenu
bind=SUPER,P,exec,keepmenu
bind=SUPERSHIFT,P,exec,hyprprofile-dmenu
2023-08-19 09:14:34 +05:30
# 3 monitor setup
2024-08-17 03:12:00 +05:30
monitor=eDP-1,1920x1080@300,900x1080,1
2024-02-27 07:27:16 +05:30
monitor=HDMI-A-1,1920x1080,1920x0,1
monitor=DP-1,1920x1080,0x0,1
2023-08-19 09:14:34 +05:30
# hdmi tv
#monitor=eDP-1,1920x1080,1920x0,1
#monitor=HDMI-A-1,1920x1080,0x0,1
# hdmi work projector
#monitor=eDP-1,1920x1080,1920x0,1
#monitor=HDMI-A-1,1920x1200,0x0,1
2023-08-19 09:14:34 +05:30
xwayland {
force_zero_scaling = true
}
binds {
movefocus_cycles_fullscreen = false
}
2023-08-19 09:14:34 +05:30
input {
kb_layout = us
kb_options = caps:escape
repeat_delay = 350
repeat_rate = 50
accel_profile = adaptive
follow_mouse = 2
float_switch_override_focus = 0
2023-08-19 09:14:34 +05:30
}
2023-11-23 23:50:38 +05:30
misc {
disable_hyprland_logo = true
2024-07-11 23:47:30 +05:30
mouse_move_enables_dpms = true
enable_swallow = true
swallow_regex = (scratch_term)|(Alacritty)|(kitty)
font_family = '' + userSettings.font + ''
2023-11-23 23:50:38 +05:30
}
2023-08-19 09:14:34 +05:30
decoration {
rounding = 8
dim_special = 0.0
2023-09-08 06:10:15 +05:30
blur {
enabled = true
size = 5
passes = 2
ignore_opacity = true
contrast = 1.17
2024-06-10 17:59:40 +05:30
brightness = '' + (if (config.stylix.polarity == "dark") then "0.8" else "1.25") + ''
xray = true
special = true
popups = true
2023-09-08 06:10:15 +05:30
}
2023-08-19 09:14:34 +05:30
}
2023-09-08 06:10:15 +05:30
'';
2023-08-19 09:14:34 +05:30
xwayland = { enable = true; };
2024-02-29 07:24:34 +05:30
systemd.enable = true;
};
home.packages = (with pkgs; [
alacritty
kitty
feh
killall
polkit_gnome
2024-06-02 20:00:13 +05:30
nwg-launchers
papirus-icon-theme
(pkgs.writeScriptBin "nwggrid-wrapper" ''
#!/bin/sh
if pgrep -x "nwggrid-server" > /dev/null
then
nwggrid -client
else
GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache nwggrid-server -layer-shell-exclusive-zone -1 -g adw-gtk3 -o 0.55 -b ${config.lib.stylix.colors.base00}
fi
'')
libva-utils
2024-06-02 20:00:13 +05:30
libinput-gestures
gsettings-desktop-schemas
(pkgs.makeDesktopItem {
name = "nwggrid";
desktopName = "Application Launcher";
exec = "nwggrid-wrapper";
terminal = false;
type = "Application";
noDisplay = true;
2024-06-06 07:33:56 +05:30
icon = "/home/"+userSettings.username+"/.local/share/pixmaps/hyprland-logo-stylix.svg";
})
2024-05-14 05:09:52 +05:30
(hyprnome.override (oldAttrs: {
rustPlatform = oldAttrs.rustPlatform // {
buildRustPackage = args: oldAttrs.rustPlatform.buildRustPackage (args // {
pname = "hyprnome";
version = "unstable-2024-05-06";
src = fetchFromGitHub {
owner = "donovanglover";
repo = "hyprnome";
rev = "f185e6dbd7cfcb3ecc11471fab7d2be374bd5b28";
hash = "sha256-tmko/bnGdYOMTIGljJ6T8d76NPLkHAfae6P6G2Aa2Qo=";
};
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (oldAttrs: rec {
name = "${pname}-vendor.tar.gz";
inherit src;
outputHash = "sha256-cQwAGNKTfJTnXDI3IMJQ2583NEIZE7GScW7TsgnKrKs=";
});
cargoHash = "sha256-cQwAGNKTfJTnXDI3IMJQ2583NEIZE7GScW7TsgnKrKs=";
});
};
})
)
2024-01-04 06:16:17 +05:30
gnome.zenity
wlr-randr
2023-08-14 21:24:27 +05:30
wtype
2024-01-04 06:16:17 +05:30
ydotool
wl-clipboard
hyprland-protocols
hyprpicker
inputs.hyprlock.packages.${pkgs.system}.default
hypridle
2024-06-02 03:28:50 +05:30
hyprpaper
fnott
2023-08-14 21:24:27 +05:30
keepmenu
pinentry-gnome3
wev
grim
slurp
2023-08-24 21:17:38 +05:30
libsForQt5.qt5.qtwayland
qt6.qtwayland
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
wlsunset
2023-08-14 01:46:19 +05:30
pavucontrol
pamixer
2024-02-19 06:28:37 +05:30
tesseract4
(pkgs.writeScriptBin "screenshot-ocr" ''
#!/bin/sh
imgname="/tmp/screenshot-ocr-$(date +%Y%m%d%H%M%S).png"
txtname="/tmp/screenshot-ocr-$(date +%Y%m%d%H%M%S)"
txtfname=$txtname.txt
2024-02-19 06:28:37 +05:30
grim -g "$(slurp)" $imgname;
tesseract $imgname $txtname;
wl-copy -n < $txtfname
'')
2024-05-18 07:25:15 +05:30
(pkgs.writeScriptBin "nwg-dock-wrapper" ''
#!/bin/sh
if pgrep -x ".nwg-dock-hyprl" > /dev/null
then
nwg-dock-hyprland
else
nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8
fi
'')
(pkgs.writeScriptBin "sct" ''
#!/bin/sh
2023-10-01 09:18:48 +05:30
killall wlsunset &> /dev/null;
if [ $# -eq 1 ]; then
temphigh=$(( $1 + 1 ))
templow=$1
wlsunset -t $templow -T $temphigh &> /dev/null &
else
killall wlsunset &> /dev/null;
fi
'')
(pkgs.writeScriptBin "obs-notification-mute-daemon" ''
#!/bin/sh
while true; do
if pgrep -x .obs-wrapped > /dev/null;
then
pkill -STOP fnott;
else
pkill -CONT fnott;
fi
sleep 10;
done
'')
2023-11-23 23:50:38 +05:30
(pkgs.writeScriptBin "suspend-unless-render" ''
#!/bin/sh
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
'')
(pkgs.makeDesktopItem {
name = "emacsclientnewframe";
desktopName = "Emacs Client New Frame";
exec = "emacsclient -c -a emacs";
terminal = false;
icon = "emacs";
type = "Application";
})])
++
(with pkgs-hyprland; [ ])
++ (with pkgs-nwg-dock-hyprland; [
(nwg-dock-hyprland.overrideAttrs (oldAttrs: {
patches = ./patches/noactiveclients.patch;
}))
]);
2024-06-06 07:33:56 +05:30
home.file.".local/share/pixmaps/hyprland-logo-stylix.svg".source =
config.lib.stylix.colors {
template = builtins.readFile ../../pkgs/hyprland-logo-stylix.svg.mustache;
extension = "svg";
};
home.file.".config/nwg-dock-hyprland/style.css".text = ''
window {
2024-05-15 01:08:36 +05:30
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.0);
border-radius: 20px;
padding: 4px;
margin-left: 4px;
margin-right: 4px;
border-style: none;
}
#box {
/* Define attributes of the box surrounding icons here */
padding: 10px;
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.55);
border-radius: 20px;
padding: 4px;
margin-left: 4px;
margin-right: 4px;
border-style: none;
}
button {
border-radius: 10px;
padding: 4px;
margin-left: 4px;
margin-right: 4px;
background: rgba(''+config.lib.stylix.colors.base03-rgb-r+'',''+config.lib.stylix.colors.base03-rgb-g+'',''+config.lib.stylix.colors.base03-rgb-b+'',0.55);
color: #''+config.lib.stylix.colors.base07+'';
font-size: 12px
}
button:hover {
background: rgba(''+config.lib.stylix.colors.base04-rgb-r+'',''+config.lib.stylix.colors.base04-rgb-g+'',''+config.lib.stylix.colors.base04-rgb-b+'',0.55);
}
'';
2024-05-15 01:08:36 +05:30
home.file.".config/nwg-dock-pinned".text = ''
nwggrid
2024-05-15 01:08:36 +05:30
Alacritty
emacsclientnewframe
qutebrowser
brave-browser
librewolf
writer
impress
calc
draw
krita
xournalpp
obs
kdenlive
flstudio
2024-05-15 01:08:36 +05:30
blender
openscad
Cura
virt-manager
'';
home.file.".config/hypr/hypridle.conf".text = ''
general {
lock_cmd = pgrep hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session
ignore_dbus_inhibit = false
}
# FIXME memory leak fries computer inbetween dpms off and suspend
#listener {
# timeout = 150 # in seconds
# on-timeout = hyprctl dispatch dpms off
# on-resume = hyprctl dispatch dpms on
#}
listener {
timeout = 165 # in seconds
2024-07-26 20:54:19 +05:30
on-timeout = loginctl lock-session
}
listener {
timeout = 180 # in seconds
#timeout = 5400 # in seconds
2024-04-05 03:29:18 +05:30
on-timeout = systemctl suspend
2024-07-11 23:47:30 +05:30
on-resume = hyprctl dispatch dpms on
2024-04-05 03:29:18 +05:30
}
'';
home.file.".config/hypr/hyprlock.conf".text = ''
background {
monitor =
path = screenshot
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
blur_passes = 4
blur_size = 5
noise = 0.0117
contrast = 0.8916
brightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
}
# doesn't work yet
image {
monitor =
path = /home/emmet/.dotfiles/user/wm/hyprland/nix-dark.png
size = 150 # lesser side if not 1:1 ratio
rounding = -1 # negative values mean circle
border_size = 0
rotate = 0 # degrees, counter-clockwise
position = 0, 200
halign = center
valign = center
}
input-field {
monitor =
size = 200, 50
outline_thickness = 3
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = false
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
2024-04-14 18:12:04 +05:30
outer_color = rgb(''+config.lib.stylix.colors.base07-rgb-r+'',''+config.lib.stylix.colors.base07-rgb-g+'', ''+config.lib.stylix.colors.base07-rgb-b+'')
inner_color = rgb(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'', ''+config.lib.stylix.colors.base00-rgb-b+'')
font_color = rgb(''+config.lib.stylix.colors.base07-rgb-r+'',''+config.lib.stylix.colors.base07-rgb-g+'', ''+config.lib.stylix.colors.base07-rgb-b+'')
fade_on_empty = true
fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered.
placeholder_text = <i>Input Password...</i> # Text rendered in the input box when it's empty.
hide_input = false
rounding = -1 # -1 means complete rounding (circle/oval)
2024-04-14 18:12:04 +05:30
check_color = rgb(''+config.lib.stylix.colors.base0A-rgb-r+'',''+config.lib.stylix.colors.base0A-rgb-g+'', ''+config.lib.stylix.colors.base0A-rgb-b+'')
fail_color = rgb(''+config.lib.stylix.colors.base08-rgb-r+'',''+config.lib.stylix.colors.base08-rgb-g+'', ''+config.lib.stylix.colors.base08-rgb-b+'')
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
fail_transition = 300 # transition time in ms between normal outer_color and fail_color
capslock_color = -1
numlock_color = -1
bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above)
invert_numlock = false # change color if numlock is off
swap_font_color = false # see below
position = 0, -20
halign = center
valign = center
}
label {
monitor =
text = Hello, Emmet
2024-04-14 18:12:04 +05:30
color = rgb(''+config.lib.stylix.colors.base07-rgb-r+'',''+config.lib.stylix.colors.base07-rgb-g+'', ''+config.lib.stylix.colors.base07-rgb-b+'')
font_size = 25
2024-04-14 18:12:04 +05:30
font_family = ''+userSettings.font+''
2024-06-12 22:07:15 +05:30
rotate = 0 # degrees, counter-clockwise
position = 0, 160
halign = center
valign = center
}
label {
monitor =
text = $TIME
2024-04-22 00:30:10 +05:30
color = rgb(''+config.lib.stylix.colors.base07-rgb-r+'',''+config.lib.stylix.colors.base07-rgb-g+'', ''+config.lib.stylix.colors.base07-rgb-b+'')
font_size = 20
font_family = Intel One Mono
rotate = 0 # degrees, counter-clockwise
position = 0, 80
halign = center
valign = center
}
'';
2024-07-31 05:13:10 +05:30
services.swayosd.enable = true;
services.swayosd.topMargin = 0.5;
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
postPatch = ''
# use hyprctl to switch workspaces
2024-05-11 07:29:27 +05:30
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch focusworkspaceoncurrentmonitor " + std::to_string(id());\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
sed -i 's/gIPC->getSocket1Reply("dispatch workspace " + std::to_string(id()));/gIPC->getSocket1Reply("dispatch focusworkspaceoncurrentmonitor " + std::to_string(id()));/g' src/modules/hyprland/workspaces.cpp
'';
2024-07-30 03:38:56 +05:30
patches = [./patches/waybarpaupdate.patch ./patches/waybarbatupdate.patch];
});
settings = {
mainBar = {
layer = "top";
position = "top";
2023-08-19 09:14:34 +05:30
height = 35;
margin = "7 7 3 7";
spacing = 2;
2024-07-30 03:38:56 +05:30
modules-left = [ "group/power" "group/battery" "group/backlight" "group/cpu" "group/memory" "group/pulseaudio" "keyboard-state" ];
modules-center = [ "custom/hyprprofile" "hyprland/workspaces" ];
modules-right = [ "group/time" "idle_inhibitor" "tray" ];
2023-08-21 01:52:26 +05:30
"custom/os" = {
"format" = " {} ";
"exec" = ''echo "" '';
"interval" = "once";
"on-click" = "nwggrid-wrapper";
2024-07-30 03:38:56 +05:30
"tooltip" = false;
};
"group/power" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"children-class" = "not-power";
"transition-left-to-right" = true;
};
"modules" = [
"custom/os"
"custom/hyprprofileicon"
"custom/lock"
"custom/quit"
"custom/power"
"custom/reboot"
];
};
"custom/quit" = {
"format" = "󰍃";
"tooltip" = false;
"on-click" = "hyprctl dispatch exit";
};
"custom/lock" = {
"format" = "󰍁";
"tooltip" = false;
"on-click" = "hyprlock";
};
"custom/reboot" = {
"format" = "󰜉";
"tooltip" = false;
2024-08-01 05:14:05 +05:30
"on-click" = "reboot";
2024-07-30 03:38:56 +05:30
};
"custom/power" = {
"format" = "󰐥";
"tooltip" = false;
"on-click" = "shutdown now";
};
"custom/hyprprofileicon" = {
"format" = "󱙋";
"on-click" = "hyprprofile-dmenu";
"tooltip" = false;
2023-08-21 01:52:26 +05:30
};
"custom/hyprprofile" = {
2024-07-30 03:38:56 +05:30
"format" = " {}";
"exec" = ''cat ~/.hyprprofile'';
"interval" = 3;
"on-click" = "hyprprofile-dmenu";
};
"keyboard-state" = {
"numlock" = true;
2024-07-30 03:38:56 +05:30
"format" = "{icon}";
"format-icons" = {
2024-07-30 03:38:56 +05:30
"locked" = "󰎠 ";
"unlocked" = "󱧓 ";
};
};
2023-09-24 02:11:42 +05:30
"hyprland/workspaces" = {
"format" = "{icon}";
"format-icons" = {
"1" = "󱚌";
"2" = "󰖟";
"3" = "";
"4" = "󰎄";
"5" = "󰋩";
"6" = "";
"7" = "󰄖";
"8" = "󰑴";
"9" = "󱎓";
2023-12-09 06:33:46 +05:30
"scratch_term" = "_";
"scratch_ranger" = "_󰴉";
2024-07-20 22:03:05 +05:30
"scratch_music" = "_";
2023-12-09 06:33:46 +05:30
"scratch_btm" = "_";
"scratch_pavucontrol" = "_󰍰";
};
"on-click" = "activate";
2024-07-30 22:46:09 +05:30
"on-scroll-up" = "hyprnome";
"on-scroll-down" = "hyprnome --previous";
2024-07-30 03:38:56 +05:30
"all-outputs" = false;
"active-only" = false;
2023-12-09 06:33:46 +05:30
"ignore-workspaces" = ["scratch" "-"];
2024-07-30 03:38:56 +05:30
"show-special" = false;
};
"idle_inhibitor" = {
format = "{icon}";
format-icons = {
2023-08-19 09:14:34 +05:30
activated = "󰅶";
deactivated = "󰾪";
};
};
tray = {
#"icon-size" = 21;
"spacing" = 10;
};
2024-07-30 03:38:56 +05:30
"clock#time" = {
"interval" = 1;
"format" = "{:%I:%M:%S %p}";
"timezone" = "America/Chicago";
"tooltip-format" = ''
<big>{:%Y %B}</big>
<tt><small>{calendar}</small></tt>'';
};
"clock#date" = {
2023-08-19 09:14:34 +05:30
"interval" = 1;
2024-07-30 03:38:56 +05:30
"format" = "{:%a %Y-%m-%d}";
2023-08-20 02:41:09 +05:30
"timezone" = "America/Chicago";
2023-08-19 09:14:34 +05:30
"tooltip-format" = ''
<big>{:%Y %B}</big>
<tt><small>{calendar}</small></tt>'';
};
2024-07-30 03:38:56 +05:30
"group/time" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = false;
};
"modules" = [ "clock#time" "clock#date" ];
};
2024-07-30 03:38:56 +05:30
cpu = { "format" = "󰍛"; };
"cpu#text" = { "format" = "{usage}%"; };
"group/cpu" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = true;
};
"modules" = [ "cpu" "cpu#text" ];
};
memory = { "format" = ""; };
"memory#text" = { "format" = "{}%"; };
"group/memory" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = true;
};
"modules" = [ "memory" "memory#text" ];
};
backlight = {
2024-07-30 03:38:56 +05:30
"format" = "{icon}";
2023-08-19 09:14:34 +05:30
"format-icons" = [ "" "" "" "" "" "" "" "" "" ];
};
2024-07-30 03:38:56 +05:30
"backlight#text" = { "format" = "{percent}%"; };
"group/backlight" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = true;
};
"modules" = [ "backlight" "backlight#text" ];
};
battery = {
"states" = {
2024-07-30 03:38:56 +05:30
"good" = 75;
"warning" = 30;
"critical" = 15;
};
"fullat" = 80;
"format" = "{icon}";
"format-charging" = "󰂄";
"format-plugged" = "󰂄";
"format-full" = "󰁹";
"format-icons" = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
"interval" = 10;
};
"battery#text" = {
"states" = {
"good" = 75;
"warning" = 30;
"critical" = 15;
};
2024-07-30 03:38:56 +05:30
"fullat" = 80;
"format" = "{capacity}%";
};
"group/battery" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = true;
};
"modules" = [ "battery" "battery#text" ];
};
pulseaudio = {
"scroll-step" = 1;
2024-07-30 03:38:56 +05:30
"format" = "{icon}";
"format-bluetooth" = "{icon}";
"format-bluetooth-muted" = "󰸈";
"format-muted" = "󰸈";
"format-source" = "";
"format-source-muted" = "";
"format-icons" = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
2023-08-19 09:14:34 +05:30
"default" = [ "" "" "" ];
};
"on-click" = "hyprctl dispatch togglespecialworkspace scratch_pavucontrol; if hyprctl clients | grep pavucontrol; then echo 'scratch_ranger respawn not needed'; else pavucontrol; fi";
};
2024-07-30 03:38:56 +05:30
"pulseaudio#text" = {
"scroll-step" = 1;
"format" = "{volume}%";
"format-bluetooth" = "{volume}%";
"format-bluetooth-muted" = "";
"format-muted" = "";
"format-source" = "{volume}%";
"format-source-muted" = "";
"on-click" = "hyprctl dispatch togglespecialworkspace scratch_pavucontrol; if hyprctl clients | grep pavucontrol; then echo 'scratch_ranger respawn not needed'; else pavucontrol; fi";
2024-07-30 03:38:56 +05:30
};
"group/pulseaudio" = {
"orientation" = "horizontal";
"drawer" = {
"transition-duration" = 500;
"transition-left-to-right" = true;
};
"modules" = [ "pulseaudio" "pulseaudio#text" ];
};
};
};
style = ''
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, ''+userSettings.font+'';
2023-08-19 09:14:34 +05:30
font-size: 20px;
}
window#waybar {
2024-05-12 09:03:53 +05:30
background-color: rgba('' + config.lib.stylix.colors.base00-rgb-r + "," + config.lib.stylix.colors.base00-rgb-g + "," + config.lib.stylix.colors.base00-rgb-b + "," + ''0.55);
2023-08-19 09:14:34 +05:30
border-radius: 8px;
color: #'' + config.lib.stylix.colors.base07 + '';
transition-property: background-color;
2023-08-19 09:14:34 +05:30
transition-duration: .2s;
}
2024-06-02 03:45:58 +05:30
tooltip {
color: #'' + config.lib.stylix.colors.base07 + '';
background-color: rgba('' + config.lib.stylix.colors.base00-rgb-r + "," + config.lib.stylix.colors.base00-rgb-g + "," + config.lib.stylix.colors.base00-rgb-b + "," + ''0.9);
border-style: solid;
border-width: 3px;
border-radius: 8px;
border-color: #'' + config.lib.stylix.colors.base08 + '';
}
tooltip * {
color: #'' + config.lib.stylix.colors.base07 + '';
background-color: rgba('' + config.lib.stylix.colors.base00-rgb-r + "," + config.lib.stylix.colors.base00-rgb-g + "," + config.lib.stylix.colors.base00-rgb-b + "," + ''0.0);
}
2023-08-19 09:14:34 +05:30
window > box {
border-radius: 8px;
opacity: 0.94;
}
2023-08-19 09:14:34 +05:30
window#waybar.hidden {
opacity: 0.2;
}
button {
border: none;
}
#custom-hyprprofile {
color: #'' + config.lib.stylix.colors.base0D + '';
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
}
#workspaces button {
2024-07-30 03:38:56 +05:30
padding: 0px 6px;
background-color: transparent;
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base04 + '';
}
#workspaces button:hover {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base07 + '';
}
2023-08-19 09:14:34 +05:30
#workspaces button.active {
color: #'' + config.lib.stylix.colors.base08 + '';
}
2023-08-19 09:14:34 +05:30
#workspaces button.focused {
color: #'' + config.lib.stylix.colors.base0A + '';
}
#workspaces button.visible {
2023-12-09 06:33:46 +05:30
color: #'' + config.lib.stylix.colors.base05 + '';
}
#workspaces button.urgent {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base09 + '';
}
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
2024-07-30 03:38:56 +05:30
#custom-hyprprofileicon,
#custom-quit,
#custom-lock,
#custom-reboot,
#custom-power,
#mpd {
2024-07-30 03:38:56 +05:30
padding: 0 3px;
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base07 + '';
border: none;
border-radius: 8px;
}
2024-07-30 03:38:56 +05:30
#custom-hyprprofileicon,
#custom-quit,
#custom-lock,
#custom-reboot,
#custom-power,
#idle_inhibitor {
background-color: transparent;
color: #'' + config.lib.stylix.colors.base04 + '';
}
#custom-hyprprofileicon:hover,
#custom-quit:hover,
#custom-lock:hover,
#custom-reboot:hover,
#custom-power:hover,
#idle_inhibitor:hover {
color: #'' + config.lib.stylix.colors.base07 + '';
}
#clock, #tray, #idle_inhibitor {
padding: 0 5px;
}
#window,
#workspaces {
2024-07-30 03:38:56 +05:30
margin: 0 6px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#clock {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0D + '';
}
#battery {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0B + '';
}
#battery.charging, #battery.plugged {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0C + '';
}
@keyframes blink {
to {
2023-08-19 09:14:34 +05:30
background-color: #'' + config.lib.stylix.colors.base07 + '';
color: #'' + config.lib.stylix.colors.base00 + '';
}
}
#battery.critical:not(.charging) {
2023-08-19 09:14:34 +05:30
background-color: #'' + config.lib.stylix.colors.base08 + '';
color: #'' + config.lib.stylix.colors.base07 + '';
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
2023-08-19 09:14:34 +05:30
background-color: #'' + config.lib.stylix.colors.base00 + '';
}
#cpu {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0D + '';
}
#memory {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0E + '';
}
#disk {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0F + '';
}
#backlight {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0A + '';
}
label.numlock {
color: #'' + config.lib.stylix.colors.base04 + '';
}
label.numlock.locked {
color: #'' + config.lib.stylix.colors.base0F + '';
}
#pulseaudio {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0C + '';
}
#pulseaudio.muted {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base04 + '';
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
#idle_inhibitor {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base04 + '';
}
#idle_inhibitor.activated {
2023-08-19 09:14:34 +05:30
color: #'' + config.lib.stylix.colors.base0F + '';
}
2023-08-19 09:14:34 +05:30
'';
};
2023-09-30 22:27:32 +05:30
home.file.".config/gtklock/style.css".text = ''
window {
background-image: url("''+config.stylix.image+''");
background-size: auto 100%;
}
'';
2024-06-02 20:00:13 +05:30
home.file.".config/nwg-launchers/nwggrid/style.css".text = ''
button, label, image {
background: none;
border-style: none;
box-shadow: none;
color: #'' + config.lib.stylix.colors.base07 + '';
font-size: 20px;
}
button {
padding: 5px;
margin: 5px;
text-shadow: none;
}
button:hover {
background-color: rgba('' + config.lib.stylix.colors.base07-rgb-r + "," + config.lib.stylix.colors.base07-rgb-g + "," + config.lib.stylix.colors.base07-rgb-b + "," + ''0.15);
}
button:focus {
box-shadow: 0 0 10px;
}
button:checked {
background-color: rgba('' + config.lib.stylix.colors.base07-rgb-r + "," + config.lib.stylix.colors.base07-rgb-g + "," + config.lib.stylix.colors.base07-rgb-b + "," + ''0.15);
}
#searchbox {
background: none;
border-color: #'' + config.lib.stylix.colors.base07 + '';
color: #'' + config.lib.stylix.colors.base07 + '';
margin-top: 20px;
margin-bottom: 20px;
font-size: 20px;
}
#separator {
background-color: rgba('' + config.lib.stylix.colors.base00-rgb-r + "," + config.lib.stylix.colors.base00-rgb-g + "," + config.lib.stylix.colors.base00-rgb-b + "," + ''0.55);
color: #'' + config.lib.stylix.colors.base07 + '';
margin-left: 500px;
margin-right: 500px;
margin-top: 10px;
margin-bottom: 10px
}
#description {
margin-bottom: 20px
}
'';
home.file.".config/nwg-launchers/nwggrid/terminal".text = "alacritty -e";
home.file.".config/nwg-drawer/drawer.css".text = ''
window {
background-color: rgba('' + config.lib.stylix.colors.base00-rgb-r + "," + config.lib.stylix.colors.base00-rgb-g + "," + config.lib.stylix.colors.base00-rgb-b + "," + ''0.55);
color: #'' + config.lib.stylix.colors.base07 + ''
}
/* search entry */
entry {
background-color: rgba('' + config.lib.stylix.colors.base01-rgb-r + "," + config.lib.stylix.colors.base01-rgb-g + "," + config.lib.stylix.colors.base01-rgb-b + "," + ''0.45);
}
button, image {
background: none;
border: none
}
button:hover {
background-color: rgba('' + config.lib.stylix.colors.base02-rgb-r + "," + config.lib.stylix.colors.base02-rgb-g + "," + config.lib.stylix.colors.base02-rgb-b + "," + ''0.45);
}
/* in case you wanted to give category buttons a different look */
#category-button {
margin: 0 10px 0 10px
}
#pinned-box {
padding-bottom: 5px;
border-bottom: 1px dotted;
border-color: #'' + config.lib.stylix.colors.base07 + '';
}
#files-box {
padding: 5px;
border: 1px dotted gray;
border-radius: 15px
border-color: #'' + config.lib.stylix.colors.base07 + '';
}
'';
home.file.".config/libinput-gestures.conf".text = ''
gesture swipe up 3 hyprctl dispatch hyprexpo:expo toggle
gesture swipe down 3 nwggrid-wrapper
2024-06-02 20:00:13 +05:30
gesture swipe right 3 hyprnome
gesture swipe left 3 hyprnome --previous
gesture swipe up 4 hyprctl dispatch movewindow u
gesture swipe down 4 hyprctl dispatch movewindow d
gesture swipe left 4 hyprctl dispatch movewindow l
gesture swipe right 4 hyprctl dispatch movewindow r
gesture pinch in hyprctl dispatch fullscreen 1
gesture pinch out hyprctl dispatch fullscreen 1
'';
services.udiskie.enable = true;
services.udiskie.tray = "always";
2023-08-15 05:33:56 +05:30
programs.fuzzel.enable = true;
2024-07-30 03:38:56 +05:30
programs.fuzzel.package = pkgs.fuzzel.overrideAttrs (oldAttrs: {
patches = ./patches/fuzzelmouseinput.patch;
});
2023-08-15 05:33:56 +05:30
programs.fuzzel.settings = {
main = {
2024-05-30 06:51:45 +05:30
font = userSettings.font + ":size=20";
dpi-aware = "no";
show-actions = "yes";
2023-08-15 05:33:56 +05:30
terminal = "${pkgs.alacritty}/bin/alacritty";
};
2023-08-18 02:00:33 +05:30
colors = {
2024-05-12 09:03:53 +05:30
background = config.lib.stylix.colors.base00 + "bf";
2023-08-19 09:14:34 +05:30
text = config.lib.stylix.colors.base07 + "ff";
match = config.lib.stylix.colors.base05 + "ff";
selection = config.lib.stylix.colors.base08 + "ff";
selection-text = config.lib.stylix.colors.base00 + "ff";
selection-match = config.lib.stylix.colors.base05 + "ff";
border = config.lib.stylix.colors.base08 + "ff";
2023-08-18 02:00:33 +05:30
};
border = {
width = 3;
radius = 7;
};
2023-08-15 05:33:56 +05:30
};
services.fnott.enable = true;
2023-08-18 01:36:16 +05:30
services.fnott.settings = {
main = {
anchor = "bottom-right";
stacking-order = "top-down";
min-width = 400;
title-font = userSettings.font + ":size=14";
summary-font = userSettings.font + ":size=12";
body-font = userSettings.font + ":size=11";
2023-08-18 01:36:16 +05:30
border-size = 0;
};
low = {
2023-08-19 09:14:34 +05:30
background = config.lib.stylix.colors.base00 + "e6";
title-color = config.lib.stylix.colors.base03 + "ff";
summary-color = config.lib.stylix.colors.base03 + "ff";
body-color = config.lib.stylix.colors.base03 + "ff";
2023-08-18 01:36:16 +05:30
idle-timeout = 150;
max-timeout = 30;
default-timeout = 8;
};
normal = {
2023-08-19 09:14:34 +05:30
background = config.lib.stylix.colors.base00 + "e6";
title-color = config.lib.stylix.colors.base07 + "ff";
summary-color = config.lib.stylix.colors.base07 + "ff";
body-color = config.lib.stylix.colors.base07 + "ff";
2023-08-18 01:36:16 +05:30
idle-timeout = 150;
max-timeout = 30;
default-timeout = 8;
};
critical = {
2023-08-19 09:14:34 +05:30
background = config.lib.stylix.colors.base00 + "e6";
title-color = config.lib.stylix.colors.base08 + "ff";
summary-color = config.lib.stylix.colors.base08 + "ff";
body-color = config.lib.stylix.colors.base08 + "ff";
2023-08-18 01:36:16 +05:30
idle-timeout = 0;
max-timeout = 0;
default-timeout = 0;
};
};
}