mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 09:36:14 -05:00
Compare commits
3 commits
f8a56388e8
...
ebc322922f
Author | SHA1 | Date | |
---|---|---|---|
ebc322922f | |||
a0ac11339d | |||
f4b1d571ae |
9 changed files with 71 additions and 7 deletions
|
@ -155,6 +155,7 @@
|
||||||
("nvim/after/ftplugin/mail/custom.vim" ,(local-file "nvim/config/after/ftplugin/mail/custom.vim"))
|
("nvim/after/ftplugin/mail/custom.vim" ,(local-file "nvim/config/after/ftplugin/mail/custom.vim"))
|
||||||
("sway" ,(local-file "sway" #:recursive? #t))
|
("sway" ,(local-file "sway" #:recursive? #t))
|
||||||
("hypr" ,(local-file "hypr" #:recursive? #t))
|
("hypr" ,(local-file "hypr" #:recursive? #t))
|
||||||
|
("wpaperd" ,(local-file "wpaperd" #:recursive? #t))
|
||||||
("mpv" ,(local-file "mpv" #:recursive? #t))
|
("mpv" ,(local-file "mpv" #:recursive? #t))
|
||||||
("foot" ,(local-file "foot" #:recursive? #t))
|
("foot" ,(local-file "foot" #:recursive? #t))
|
||||||
("pulse/client.conf" ,(local-file "pulseaudio/client.conf"))
|
("pulse/client.conf" ,(local-file "pulseaudio/client.conf"))
|
||||||
|
|
|
@ -11,7 +11,9 @@ nice -n13 swww init &
|
||||||
#~/.config/hypr/wallpaper-daemon.sh &
|
#~/.config/hypr/wallpaper-daemon.sh &
|
||||||
wpaperd -d &
|
wpaperd -d &
|
||||||
|
|
||||||
swayidle -w timeout 300 'swaylock --screenshots --clock --indicator --grace 3 --fade-in 1 --effect-blur 7x5 --effect-greyscale' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000' &
|
#swayidle -w timeout 300 'swaylock --screenshots --clock --indicator --grace 3 --fade-in 1 --effect-blur 7x5 --effect-greyscale' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000' &
|
||||||
|
|
||||||
|
hypridle &
|
||||||
|
|
||||||
syncthing serve --no-browser &
|
syncthing serve --no-browser &
|
||||||
|
|
||||||
|
|
16
home-config/hypr/hypridle.conf
Normal file
16
home-config/hypr/hypridle.conf
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock
|
||||||
|
before_sleep_cmd = loginctl lock-session
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 300
|
||||||
|
on-timeout = loginctl lock-session
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 600
|
||||||
|
on-timeout = hyprctl dispatch dpms off
|
||||||
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
|
@ -203,8 +203,11 @@ bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
# Bind mainMod + L to screenlocker
|
# Bind mainMod + L to screenlocker
|
||||||
bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale
|
bind = $mainMod, L, exec, hyprlock
|
||||||
bind = $mainMod SHIFT, L, exec, swaylock --screenshots --clock --indicator --effect-blur 7x5 --effect-greyscale & sleep 0.5; loginctl suspend
|
bind = $mainMod SHIFT, L, exec, loginctl suspend
|
||||||
|
|
||||||
|
# Keybind to toggle "performance mode" (toggles GPU intensive things)
|
||||||
|
bind = $mainMod, F1, exec, ~/.config/hypr/perf_mode.sh
|
||||||
|
|
||||||
# Keybind for screenshot
|
# Keybind for screenshot
|
||||||
bind = $mainMod SHIFT, S, exec, grimblast copy area
|
bind = $mainMod SHIFT, S, exec, grimblast copy area
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = /home/ryan/.config/hypr/Wallpapers/static/autumn1.png
|
#path = /home/ryan/.config/hypr/Wallpapers/static/autumn1.png
|
||||||
|
path = screenshot
|
||||||
|
|
||||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||||
blur_passes = 2 # 0 disables blurring
|
blur_passes = 2 # 0 disables blurring
|
||||||
|
@ -52,4 +53,5 @@ label {
|
||||||
position = 0, 300
|
position = 0, 300
|
||||||
halign = center
|
halign = center
|
||||||
valign = center
|
valign = center
|
||||||
|
font_family = Lilex Nerd Font
|
||||||
}
|
}
|
||||||
|
|
14
home-config/hypr/perf_mode.sh
Executable file
14
home-config/hypr/perf_mode.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
|
||||||
|
if [ "$HYPRGAMEMODE" = 1 ] ; then
|
||||||
|
hyprctl --batch "\
|
||||||
|
keyword animations:enabled 0;\
|
||||||
|
keyword decoration:drop_shadow 0;\
|
||||||
|
keyword decoration:blur:enabled 0;\
|
||||||
|
keyword general:gaps_in 0;\
|
||||||
|
keyword general:gaps_out 0;\
|
||||||
|
keyword general:border_size 1;\
|
||||||
|
keyword decoration:rounding 0"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
hyprctl reload
|
|
@ -38,14 +38,12 @@
|
||||||
aerc
|
aerc
|
||||||
pkg-config
|
pkg-config
|
||||||
wttrbar
|
wttrbar
|
||||||
swww
|
|
||||||
wl-clip-persist
|
wl-clip-persist
|
||||||
gifski
|
gifski
|
||||||
waypaper
|
waypaper
|
||||||
gdu
|
gdu
|
||||||
spotify-player
|
spotify-player
|
||||||
hyprpicker
|
hyprpicker
|
||||||
hyprlock
|
|
||||||
xwayland
|
xwayland
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
|
@ -54,6 +52,14 @@
|
||||||
libva
|
libva
|
||||||
libvdpau
|
libvdpau
|
||||||
wpaperd
|
wpaperd
|
||||||
|
hypridle
|
||||||
|
|
||||||
|
# Wrapped programs for some env variables
|
||||||
|
(pkgs.writeScriptBin "hyprlock" ''
|
||||||
|
#! ${pkgs.bash}/bin/bash
|
||||||
|
export LD_PRELOAD="/run/current-system/profile/lib/libpam.so.0:/run/current-system/profile/lib/libfontconfig.so:$LD_PRELOAD"
|
||||||
|
exec ${pkgs.hyprlock}/bin/hyprlock "$@"
|
||||||
|
'')
|
||||||
|
|
||||||
# Flakes specific things defined in flake.nix
|
# Flakes specific things defined in flake.nix
|
||||||
hyprland.packages.${pkgs.system}.default
|
hyprland.packages.${pkgs.system}.default
|
||||||
|
@ -62,6 +68,7 @@
|
||||||
|
|
||||||
# Fonts!
|
# Fonts!
|
||||||
noto-fonts
|
noto-fonts
|
||||||
|
dejavu_fonts
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
|
|
4
home-config/wpaperd/config.toml
Normal file
4
home-config/wpaperd/config.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[default]
|
||||||
|
duration = "30m"
|
||||||
|
path = "~/.config/hypr/Wallpapers/static/"
|
||||||
|
transition-time = 2000
|
|
@ -4,6 +4,7 @@
|
||||||
#:use-module (gnu system setuid)
|
#:use-module (gnu system setuid)
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages avahi)
|
#:use-module (gnu packages avahi)
|
||||||
|
#:use-module (gnu packages wm)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (gnu packages shells)
|
#:use-module (gnu packages shells)
|
||||||
#:use-module (guix build-system trivial)
|
#:use-module (guix build-system trivial)
|
||||||
|
@ -129,6 +130,7 @@
|
||||||
;"swaylock-effects"
|
;"swaylock-effects"
|
||||||
"fuzzel"
|
"fuzzel"
|
||||||
"foot"
|
"foot"
|
||||||
|
"linux-pam" ; installed directly to get libs in profile directly
|
||||||
"pinentry-qt"
|
"pinentry-qt"
|
||||||
"adwaita-icon-theme"
|
"adwaita-icon-theme"
|
||||||
"hicolor-icon-theme"
|
"hicolor-icon-theme"
|
||||||
|
@ -161,7 +163,7 @@
|
||||||
"wireshark"
|
"wireshark"
|
||||||
"webkitgtk-with-libsoup2" ; Needed for Go wails development
|
"webkitgtk-with-libsoup2" ; Needed for Go wails development
|
||||||
"zsh"))
|
"zsh"))
|
||||||
(list my-ca-certs virt-manager-ovmf bluez-ryan blueman-ryan swayidle-new)
|
(list my-ca-certs virt-manager-ovmf bluez-ryan blueman-ryan)
|
||||||
%my-base-packages ))
|
%my-base-packages ))
|
||||||
|
|
||||||
;; Below is the list of system services. To search for available
|
;; Below is the list of system services. To search for available
|
||||||
|
@ -188,11 +190,24 @@
|
||||||
(socket "/var/run/tailscale/tailscaled.sock")))
|
(socket "/var/run/tailscale/tailscaled.sock")))
|
||||||
(service containerd-service-type)
|
(service containerd-service-type)
|
||||||
(service nix-service-type)
|
(service nix-service-type)
|
||||||
|
(simple-service 'hyprlock-pam pam-root-service-type
|
||||||
|
(list
|
||||||
|
(pam-service
|
||||||
|
(name "hyprlock")
|
||||||
|
(auth
|
||||||
|
(list
|
||||||
|
(pam-entry (control "include")
|
||||||
|
(module "login")))))))
|
||||||
(service libvirt-service-type
|
(service libvirt-service-type
|
||||||
(libvirt-configuration
|
(libvirt-configuration
|
||||||
(libvirt libvirt-ovmf)
|
(libvirt libvirt-ovmf)
|
||||||
(unix-sock-group "libvirt")))
|
(unix-sock-group "libvirt")))
|
||||||
(service virtlog-service-type)
|
(service virtlog-service-type)
|
||||||
|
;(service screen-locker-service-type
|
||||||
|
; (screen-locker-configuration
|
||||||
|
; (name "hyprlock")
|
||||||
|
; (program (file-append swaylock "/bin/swaylock"))
|
||||||
|
; (using-pam? #t)))
|
||||||
(simple-service 'spice-polkit polkit-service-type (list spice-gtk))
|
(simple-service 'spice-polkit polkit-service-type (list spice-gtk))
|
||||||
(simple-service 'hwdb-creation etc-service-type (list `("udev-here-oneoneone" ,(plain-file "issue" "test\n"))))
|
(simple-service 'hwdb-creation etc-service-type (list `("udev-here-oneoneone" ,(plain-file "issue" "test\n"))))
|
||||||
(service bluetooth-service-type
|
(service bluetooth-service-type
|
||||||
|
|
Loading…
Reference in a new issue