hyrp conf + flake + gnome extensions upd

This commit is contained in:
Your Name 2024-05-04 06:18:58 +03:00
parent d2cbcacc5a
commit 20c358ef3c
8 changed files with 321 additions and 48 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, inputs, ... }: with lib.gvariant;
{ pkgs, lib, inputs, stable, ... }: with lib.gvariant;
let
# wallpaper = pkgs.stdenv.mkDerivation {
@ -152,13 +152,14 @@ in
environment.systemPackages = with pkgs; [
gnomeExtensions.appindicator
gnomeExtensions.activate-window-by-title
gnomeExtensions.unite
stable.gnomeExtensions.unite
gnomeExtensions.tailscale-qs
gnomeExtensions.gsconnect
gnomeExtensions.clipboard-indicator
gnomeExtensions.pip-on-top
gnomeExtensions.cloudflare-warp-toggle
gnomeExtensions.tiling-assistant
gnomeExtensions.overview-background
gnome.gnome-tweaks
mojave-gtk-theme
adw-gtk3

View file

@ -6,10 +6,15 @@
];
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
users.users.delta.packages = with pkgs; [
swww stable.waybar stable.swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hypridle libnotify brightnessctl
swww stable.waybar stable.swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hypridle libnotify brightnessctl pamixer python3
];
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
# environment.systemPackages = [
# inputs.hyprland-contrib.packages.${pkgs.system}.grimblast.override { license = licenses.gpl3; }
# inputs.hyprland-contrib.packages.${pkgs.system}.hdrop.override { license = licenses.gpl3; }
# ];
# xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
#test later systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
home-manager.users.delta = {

View file

@ -1,9 +1,13 @@
general {
lock_cmd = /home/delta/scripts/swaylock # dbus/sysd lock command (loginctl lock-session)
before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit in minute' # command ran before sleep
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
}
listener {
timeout = 245
before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit in minute'
}
`
listener {
timeout = 250 # in seconds
on-timeout = brightnessctl -d platform::kbd_backlight s 0 # command to run when timeout has passed

View file

@ -1,8 +1,12 @@
# Setup monitors
# Setup monitors
# See https://wiki.hyprland.org/Configuring/Monitors/
#monitor=,preferred,auto,1.066667
#monitor=,preferred,90,1.066667
monitor=eDP-1,preferred,auto,1.333333
# monitor=eDP-1,preferred,auto,1.6
#monitor=eDP-1,preferred,auto,1.066667
#source = ~/.config/hypr/monitors.conf
#source = ~/.config/hypr/workspaces.conf
@ -26,7 +30,7 @@ exec-once = sh -c "sleep 1 && swww clear"
#exec-once = swww img Downloads/PC\ Wallpapers/gifpixel/rooftop.gif
#exec-once = mpvpaper '*' -o "video-scale-y=1.1 --gpu-context=wayland --vo=gpu --hwdec=vaapi-copy" videowork/bgloop.webm
exec-once = gtk-launch autostart
exec-once = waybar
exec-once = waybar -c ~/.config/waybar/config-online.jsonc
#exec-once = ags
exec-once = swaync
@ -46,7 +50,7 @@ exec-once = hyprctl setcursor Bibata-Modern-Classic 16
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
env = NIX_REMOTE,daemon
#env = NIX_REMOTE,daemon
exec-once = export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS
#env = QT_QPA_PLATFORMTHEME,qt5ct
@ -79,8 +83,8 @@ input {
mouse_refocus = false
touchpad {
natural_scroll = no
#disable_while_typing = false
natural_scroll = no
#disable_while_typing = false
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
@ -106,15 +110,16 @@ general {
}
Binds {
scroll_event_delay = 0
workspace_back_and_forth = true
workspace_center_on = 1
# scroll_event_delay = 0
# workspace_back_and_forth = true
# workspace_center_on = 1
}
XWayland {
xwayland {
force_zero_scaling = true
}
misc {
disable_hyprland_logo = yes
focus_on_activate = yes
@ -139,10 +144,10 @@ decoration {
rounding = 5
blur {
enabled = true
size = 7
passes = 4
new_optimizations = true
enabled = true
size = 7
passes = 4
new_optimizations = true
}
blurls = lockscreen
@ -193,9 +198,9 @@ gestures {
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic mouse V1 {
sensitivity = -0.5
}
# device:epic mouse V1 {
# sensitivity = -0.5
# }
# Example windowrule v1
#windowrule = float, ^(kitty)$
@ -233,6 +238,11 @@ windowrulev2 = stayfocused,class:^(swlauncher)$
windowrulev2 = center,class:^(swlauncher)$
windowrulev2 = size 28% 50%,class:^(swlauncher)$
windowrulev2 = size 100% 100%,class:^(kitty_drop)$
windowrulev2 = minsize 100%,100%,class:^(kitty_drop)$
windowrulev2 = maxsize 100%,100%,class:^(kitty_drop)$
windowrulev2 = center,class:^(kitty_drop)$
windowrulev2 = float,class:^(clipmanager)$
windowrulev2 = noanim,class:^(clipmanager)$
windowrulev2 = stayfocused,class:^(clipmanager)$
@ -245,6 +255,8 @@ windowrulev2 = noanim,title:^(clipboard_manager)$
windowrulev2 = stayfocused,title:^(clipboard_manager)$
windowrulev2 = center,title:^(clipboard_manager)$
windowrulev2 = size 45% 45%,title:^(clipboard_manager)$
# windowrulev2 = opacity 0.7,title:^(clipboard_manager)$
#foot applauncher app_launcher
windowrulev2 = float,title:^(app_launcher)$
@ -271,6 +283,7 @@ windowrulev2 = noblur, class:^(steam)$
windowrulev2 = noshadow, class:^(steam)$
windowrule = noblur,^(firefox)$ # disables blur for firefox
windowrule = noblur,^(kitty_drop)$
#layerrules
#layerrule = noanim, swaync-notification-window
@ -294,12 +307,17 @@ bind = $mainMod, U, togglesplit
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#bind = $mainMod, Q, exec, kitty #open the terminal
bind = $mainMod, RETURN, exec, footclient #open the terminal
bind = $mainMod SHIFT, RETURN, exec, alacritty #open the terminal
bind = $mainMod, Q, exec, wezterm #open the terminal
#bind = $mainMod, RETURN, exec, footclient #open the terminal
bind = ALT, RETURN, exec, sh -c "/home/delta/.config/hypr/hdrop -p t -f kitty --class kitty_drop"
bind = $mainMod, RETURN, exec, footclient
bind = $mainMod, Q, exec, footclient
bind = SHIFT ALT, X, exec, sh -c "/home/delta/.config/hypr/hdrop -h '60' -f 'keepassxc_lite' --class org.keepassxc.KeePassXC"
bind = ALT, T, exec, sh -c "/home/delta/.config/hypr/hdrop -h '60' -f 'telegram-desktop' --class org.telegram.desktop"
#bind = $mainMod SHIFT, RETURN, exec, alacritty #open the terminal
# bind = $mainMod, Q, exec, wezterm #open the terminal
#bind = $mainMod, Q, exec, alacritty #open the terminal
bind = $mainMod SHIFT, Q, exec, alacritty #open the terminal
bind = $mainMod CONTROL, Q, exec, wezterm start #--always-new-process #open the terminal
# bind = $mainMod SHIFT, Q, exec, alacritty #open the terminal
# bind = $mainMod CONTROL, Q, exec, wezterm start #--always-new-process #open the terminal
bind = $mainMod, F1, exec, ~/.config/hypr/gamemode.sh
env = HYPRGAPSMODE
@ -318,7 +336,7 @@ bind = $mainMod, E, exec, thunar # Show the graphical file browser
bind = $mainMod, V, togglefloating, # Allow a window to float
#bind = $mainMod, SPACE, exec, wofi # Show the graphical app launcher
#bind = $mainMod, SPACE, exec, kitty /usr/bin/
her-desktop # Show the graphical app launcher
# her-desktop # Show the graphical app launcher
#bind = $mainMod, SPACE, exec, alacritty --class=swlauncher -e /usr/bin/sway-launcher-desktop #& hyprctl switchxkblayout at-translated-set-2-keyboard 0# Show the graphical app launcher
#bind = $mainMod, SPACE, exec, footclient --title=app_launcher sh -c "TERMINAL=footclient sway-launcher-desktop" & hyprctl switchxkblayout at-translated-set-2-keyboard 0# Show the graphical app launcher
bind = $mainMod, SPACE, exec, anyrun & hyprctl switchxkblayout at-translated-set-2-keyboard 0# Show the graphical app launcher

View file

@ -100,6 +100,11 @@ let
${pkgs.glib}/bin/gdbus call --session --dest org.gnome.Shell --object-path /de/lucaswerkmeister/ActivateWindowByTitle --method de.lucaswerkmeister.ActivateWindowByTitle.activateByWmClass 'org.keepassxc.KeePassXC'
'';
keepassxc_lite = pkgs.writeScriptBin "keepassxc_lite" ''
#!/usr/bin/env sh
${pkgs.coreutils}/bin/base64 -d ${config.sops.secrets.qqq.path} | ${pkgs.keepassxc}/bin/keepassxc --pw-stdin ~/Dropbox/pswd.kdbx
'';
keepassxcDesktopItem = pkgs.makeDesktopItem {
name = "org.keepassxc.KeePassXC";
desktopName = "KeePassXC";
@ -159,7 +164,7 @@ in {
users.users.delta.packages = [
kitty_wrapped
#ephemeralbrowser ephemeralbrowserDesktopItem
keepassxc keepassxcDesktopItem
keepassxc keepassxcDesktopItem keepassxc_lite
autostart autostartDesktopItem
firefoxRussia firefoxRussiaDesktopItem
# googleChromeRussia googleChromeRussiaDesktopItem

View file

@ -115,7 +115,7 @@
},
"flake-utils": {
"inputs": {
"systems": "systems"
"systems": "systems_2"
},
"locked": {
"lastModified": 1701680307,
@ -133,7 +133,7 @@
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
"systems": "systems_3"
},
"locked": {
"lastModified": 1710146030,
@ -151,7 +151,7 @@
},
"flake-utils_3": {
"inputs": {
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1710146030,
@ -169,7 +169,7 @@
},
"flake-utils_4": {
"inputs": {
"systems": "systems_4"
"systems": "systems_5"
},
"locked": {
"lastModified": 1710146030,
@ -248,6 +248,155 @@
"type": "github"
}
},
"hyprcursor": {
"inputs": {
"hyprlang": [
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1713612213,
"narHash": "sha256-zJboXgWNpNhKyNF8H/3UYzWkx7w00TOCGKi3cwi+tsw=",
"owner": "hyprwm",
"repo": "hyprcursor",
"rev": "cab4746180f210a3c1dd3d53e45c510e309e90e1",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprcursor",
"type": "github"
}
},
"hyprland": {
"inputs": {
"hyprcursor": "hyprcursor",
"hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang",
"hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs_2",
"systems": "systems",
"wlroots": "wlroots",
"xdph": "xdph"
},
"locked": {
"lastModified": 1714431929,
"narHash": "sha256-v9bzl7abnOacN/mW1x6nrP0hnCTWVUzETGq8HG6couI=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "5e6f7b1cdb72b394ad8556bb232ac8a406d851b4",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "Hyprland",
"type": "github"
}
},
"hyprland-contrib": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1713780596,
"narHash": "sha256-DDAYNGSnrBwvVfpKx+XjkuecpoE9HiEf6JW+DBQgvm0=",
"owner": "hyprwm",
"repo": "contrib",
"rev": "110e6dc761d5c3d352574def3479a9c39dfc4358",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "contrib",
"type": "github"
}
},
"hyprland-protocols": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1691753796,
"narHash": "sha256-zOEwiWoXk3j3+EoF3ySUJmberFewWlagvewDRuWYAso=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "0c2ce70625cb30aef199cb388f99e19a61a6ce03",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"hyprlang": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1713121246,
"narHash": "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "78fcaa27ae9e1d782faa3ff06c8ea55ddce63706",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprlang",
"type": "github"
}
},
"hyprwayland-scanner": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1714171579,
"narHash": "sha256-eaWDIvt8ufUKKz3Lc2a3PyemLJG1m9RYlF+HP3hWbaw=",
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"rev": "126dad854f22fe30e6b82cd21808e76903d90ac5",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
@ -382,6 +531,22 @@
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1713714899,
"narHash": "sha256-+z/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6143fc5eeb9c4f00163267708e26191d1e918932",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1712791164,
"narHash": "sha256-3sbWO1mbpWsLepZGbWaMovSO7ndZeFqDSdX0hZ9nVyw=",
@ -397,7 +562,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1712883908,
"narHash": "sha256-icE1IJE9fHcbDfJ0+qWoDdcBXUoZCcIJxME4lMHwvSM=",
@ -413,7 +578,7 @@
"type": "github"
}
},
"nixpkgs_6": {
"nixpkgs_7": {
"locked": {
"lastModified": 1713714899,
"narHash": "sha256-+z/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y=",
@ -436,7 +601,7 @@
"flake-parts": "flake-parts_2",
"home-manager": "home-manager_2",
"nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_4",
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
@ -485,7 +650,9 @@
"inputs": {
"anyrun": "anyrun",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
"hyprland": "hyprland",
"hyprland-contrib": "hyprland-contrib",
"nixpkgs": "nixpkgs_3",
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixpkgs2105": "nixpkgs2105",
@ -496,7 +663,7 @@
},
"secrets": {
"inputs": {
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_5",
"sops-nix": "sops-nix"
},
"locked": {
@ -517,7 +684,7 @@
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": [
"nixpkgs-unstable"
"nixpkgs"
],
"nixpkgs-stable": [
"nixpkgs-stable"
@ -540,7 +707,7 @@
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_5",
"nixpkgs": "nixpkgs_6",
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
@ -559,16 +726,16 @@
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"repo": "default-linux",
"type": "github"
}
},
@ -617,10 +784,25 @@
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tdesktop": {
"inputs": {
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_6"
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1714027575,
@ -635,6 +817,56 @@
"repo": "telegram-desktop-patched",
"type": "github"
}
},
"wlroots": {
"flake": false,
"locked": {
"lastModified": 1713731601,
"narHash": "sha256-bdcKdtLkusvv85DNuJsajZLFeq7bXp+x5AGP1Sd4wD8=",
"owner": "hyprwm",
"repo": "wlroots-hyprland",
"rev": "5c1d51c5a2793480f5b6c4341ad0797052aec2ea",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "wlroots-hyprland",
"rev": "5c1d51c5a2793480f5b6c4341ad0797052aec2ea",
"type": "github"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": [
"hyprland",
"hyprland-protocols"
],
"hyprlang": [
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1713724432,
"narHash": "sha256-dtU1y4oj/0Y42oauzm93ucFg1AoqETnQ21bmXTIUng0=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "9ace6f969ce495185df34cc6254fb9d297765478",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
}
},
"root": "root",

View file

@ -12,9 +12,14 @@
nixvim.url = "github:nix-community/nixvim";
shwewo = {
url = "github:shwewo/flake";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
};
hyprland.url = "github:hyprwm/Hyprland";
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, home-manager, anyrun, ... }:

View file

@ -62,11 +62,13 @@ in {
substituters = [
"https://shwewo.cachix.org"
"https://anyrun.cachix.org"
"https://hyprland.cachix.org"
# "https://nyx.chaotic.cx/"
];
trusted-public-keys = [
"shwewo.cachix.org-1:84cIX7ETlqQwAWHBnd51cD4BeUVXCyGbFdtp+vLxKOo="
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
# "nyx.chaotic.cx-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8=" "chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
];
};
@ -123,6 +125,7 @@ in {
ltree = "${pkgs.lsd}/bin/lsd --tree";
unpack = "aunpack";
where = "which";
c = "cd";
};
promptInit = ''
set TERM "xterm-256color"