logind.conf / hyprland / mako configs

This commit is contained in:
albert 2023-08-26 21:31:14 +09:00
parent 8a446964ae
commit 938105e6e8
7 changed files with 31 additions and 11 deletions

View file

@ -13,11 +13,11 @@ nixos-rebuild switch --flake '/etc/nixos#<HOSTNAME>'
* [ ] Try the multi-GPU configs on the wiki * [ ] Try the multi-GPU configs on the wiki
* [ ] set up pinentry on awesome-hyprland * [ ] set up pinentry on awesome-hyprland
* [ ] Get swaylock to dim / turn off the screen, then enter suspend/hibernate * [ ] Get swaylock to dim / turn off the screen, then enter suspend/hibernate
* [ ] swayosd * [x] swayosd
* [ ] wayprompt * [ ] wayprompt
* [ ] wlogout * [ ] wlogout
* [ ] cli-based filebrowser for hyprland * [ ] 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) * [ ] Try disko - [Link](https://github.com/nix-community/disko)
* [ ] btrfs snapshots * [ ] btrfs snapshots
* [ ] weechat / weechat-matrix * [ ] weechat / weechat-matrix

View file

@ -51,7 +51,7 @@ base_10_sizes = False
show_cpu_freq = True show_cpu_freq = True
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime #* Special formatting: /host = hostname | /user = username | /uptime = system uptime
clock_format = "[/usr@/host] [/uptime] [%X]" clock_format = "[/user@/host] [/uptime] [%X]"
background_update = True background_update = True
custom_cpu_name = "" custom_cpu_name = ""

View file

@ -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))))

View file

@ -23,7 +23,7 @@
company ; the ultimate code completion backend company ; the ultimate code completion backend
;;helm ; the *other* search engine for love and life ;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine... ;;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 vertico ; the search engine of the future
:ui :ui

View file

@ -221,6 +221,7 @@
# bind = ALT, TAB, exec, rofi -show window # bind = ALT, TAB, exec, rofi -show window
# Resize # Resize
bind = $mainMod, R, exec, notify-send "Entered resize mode.\nPress ESC to quit."
bind = $mainMod, R, submap, resize bind = $mainMod, R, submap, resize
submap = resize submap = resize
binde = , H, resizeactive,-50 0 binde = , H, resizeactive,-50 0
@ -257,8 +258,8 @@
# Set up the idle management daemon # Set up the idle management daemon
swayidle -w \ swayidle -w \
timeout 300 'swaylock -f' \ timeout 300 'swaylock -f' \
timeout 600 'swaymsg "output * power off"' \ timeout 600 'hyprctl dispatch dpms off' \
resume 'swaymsg "output * power on"' \ resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f' before-sleep 'swaylock -f'
mako mako
''; '';

View file

@ -8,13 +8,14 @@ on-button-right=dismiss-all
font=Jetbrains Regular Nerd font=Jetbrains Regular Nerd
background-color=#252423 background-color=#252423
border-color=#d5c4a1bb
text-color=#e2cca9 text-color=#e2cca9
width=300 width=300
height=100 height=100
margin=10 margin=10
padding=15 padding=15
border-size=0 border-size=3
border-radius=5 border-radius=15
icons=1 icons=1
max-icon-size=128 max-icon-size=128
icon-location=left icon-location=left

View file

@ -38,6 +38,11 @@
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
services.logind.extraConfig = ''
IdleActionSec=900
IdleAction=suspend-then-hibernate
'';
# XDG portal # XDG portal
xdg.portal.enable = true; xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];