logind.conf / hyprland / mako configs
This commit is contained in:
parent
8a446964ae
commit
938105e6e8
7 changed files with 31 additions and 11 deletions
|
@ -13,11 +13,11 @@ nixos-rebuild switch --flake '/etc/nixos#<HOSTNAME>'
|
|||
* [ ] Try the multi-GPU configs on the wiki
|
||||
* [ ] set up pinentry on awesome-hyprland
|
||||
* [ ] Get swaylock to dim / turn off the screen, then enter suspend/hibernate
|
||||
* [ ] swayosd
|
||||
* [x] swayosd
|
||||
* [ ] wayprompt
|
||||
* [ ] wlogout
|
||||
* [ ] cli-based filebrowser for hyprland
|
||||
* [ ] Find a way to adjust window sizes with a keyboard shortcut in Hyprland
|
||||
* [x] Find a way to adjust window sizes with a keyboard shortcut in Hyprland
|
||||
* [ ] Try disko - [Link](https://github.com/nix-community/disko)
|
||||
* [ ] btrfs snapshots
|
||||
* [ ] weechat / weechat-matrix
|
||||
|
|
|
@ -51,7 +51,7 @@ base_10_sizes = False
|
|||
show_cpu_freq = True
|
||||
|
||||
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||
clock_format = "[/usr@/host] [/uptime] [%X]"
|
||||
clock_format = "[/user@/host] [/uptime] [%X]"
|
||||
|
||||
background_update = True
|
||||
custom_cpu_name = ""
|
||||
|
@ -80,4 +80,4 @@ selected_battery = "Auto"
|
|||
log_level = "WARNING"
|
||||
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1,14 @@
|
|||
(setq doom-theme 'doom-gruvbox)
|
||||
(setq doom-theme 'doom-gruvbox)
|
||||
|
||||
(defun posframe-poshandler-window-top-center-offset (info)
|
||||
"Posframe's position handler.
|
||||
|
||||
Get a position which let posframe stay onto current window's
|
||||
top center. The structure of INFO can be found in docstring of
|
||||
`posframe-show'."
|
||||
(let* ((window-left (plist-get info :parent-window-left))
|
||||
(window-top (plist-get info :parent-window-top))
|
||||
(window-width (plist-get info :parent-window-width))
|
||||
(posframe-width (plist-get info :posframe-width)))
|
||||
(cons (+ window-left (/ (- window-width posframe-width) 2))
|
||||
(+ window-top 48))))
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
company ; the ultimate code completion backend
|
||||
;;helm ; the *other* search engine for love and life
|
||||
;;ido ; the other *other* search engine...
|
||||
;;ivy ; a search engine for love and life
|
||||
ivy ; a search engine for love and life
|
||||
vertico ; the search engine of the future
|
||||
|
||||
:ui
|
||||
|
|
|
@ -221,6 +221,7 @@
|
|||
# bind = ALT, TAB, exec, rofi -show window
|
||||
|
||||
# Resize
|
||||
bind = $mainMod, R, exec, notify-send "Entered resize mode.\nPress ESC to quit."
|
||||
bind = $mainMod, R, submap, resize
|
||||
submap = resize
|
||||
binde = , H, resizeactive,-50 0
|
||||
|
@ -257,8 +258,8 @@
|
|||
# Set up the idle management daemon
|
||||
swayidle -w \
|
||||
timeout 300 'swaylock -f' \
|
||||
timeout 600 'swaymsg "output * power off"' \
|
||||
resume 'swaymsg "output * power on"' \
|
||||
timeout 600 'hyprctl dispatch dpms off' \
|
||||
resume 'hyprctl dispatch dpms on' \
|
||||
before-sleep 'swaylock -f'
|
||||
mako
|
||||
'';
|
||||
|
|
|
@ -8,13 +8,14 @@ on-button-right=dismiss-all
|
|||
|
||||
font=Jetbrains Regular Nerd
|
||||
background-color=#252423
|
||||
border-color=#d5c4a1bb
|
||||
text-color=#e2cca9
|
||||
width=300
|
||||
height=100
|
||||
margin=10
|
||||
padding=15
|
||||
border-size=0
|
||||
border-radius=5
|
||||
border-size=3
|
||||
border-radius=15
|
||||
icons=1
|
||||
max-icon-size=128
|
||||
icon-location=left
|
||||
|
@ -26,4 +27,4 @@ default-timeout=15000
|
|||
layer=top
|
||||
anchor=top-right
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,11 @@
|
|||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
IdleActionSec=900
|
||||
IdleAction=suspend-then-hibernate
|
||||
'';
|
||||
|
||||
# XDG portal
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
|
Loading…
Reference in a new issue