Add XDG-Utils, fix up some formatting in hyprland conf,

This commit is contained in:
albert 2023-08-27 12:55:57 +09:00
parent 3d7c5eafb7
commit 5381889a9e
3 changed files with 31 additions and 26 deletions

View file

@ -7,8 +7,8 @@
# Laptop specific: # Laptop specific:
monitor=,highrr,auto,1.25 monitor=,highrr,auto,1.25
# https://wiki.hyprland.org/Configuring/Variables/ # https://wiki.hyprland.org/Configuring/Variables/
# env = XCURSOR_SIZE,24
env = GDK_SCALE,2 env = GDK_SCALE,2
env = XCURSOR_SIZE,48 env = XCURSOR_SIZE,48
@ -103,7 +103,6 @@
bind = $mainMod, Q, exec, kitty bind = $mainMod, Q, exec, kitty
bind = $mainMod, C, killactive, bind = $mainMod, C, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainMod, E, exec, dolphin
bind = $mainMod, V, togglefloating, bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
@ -149,18 +148,21 @@
############################################################################# #############################################################################
# Custom keybinds # Custom keybinds
# Show Rofi on SUPER-S
bind = $mainMod, S, exec, rofi -show drun -show-icons
# Show Rofi on SUPER-SPACE # Show Rofi on SUPER-SPACE
bind = $mainMod, space, exec, rofi -show drun -show-icons bind = $mainMod, space, exec, rofi -show drun -show-icons
# Take a screenshot with the Print key # Take a screenshot with the Print key
bind = , Print, exec, grim -g "$(slurp)" | wl-copy -t image/png bind = , Print, exec, grim -g "$(slurp)" | wl-copy -t image/png
# Move to the previous / next workspace with SUPER-LEFT and SUPER-RIGHT # Move to the previous / next workspace with SUPER-LEFT and SUPER-RIGHT
bind = $mainMod , right, workspace, e+1 bind = $mainMod , right, workspace, e+1
bind = $mainMod , left , workspace, e-1 bind = $mainMod , left , workspace, e-1
bind = $mainMod SHIFT, right, movetoworkspace, e+1 bind = $mainMod SHIFT, right, movetoworkspace, e+1
bind = $mainMod SHIFT, left , movetoworkspace, e-1 bind = $mainMod SHIFT, left , movetoworkspace, e-1
# Launch various applications
bind = $mainMod, R, exec, ranger
bind = $mainMod, S, exec, steam
# Lock the screen, send to swaylock # Lock the screen, send to swaylock
bind = $mainMod, L, exec, swaylock bind = $mainMod, L, exec, swaylock
@ -236,8 +238,6 @@
submap = reset submap = reset
# Start the config: # Start the config:
# https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=bash ~/.config/hypr/start.sh exec-once=bash ~/.config/hypr/start.sh
''; '';
}; };
@ -247,12 +247,12 @@
executable = true; executable = true;
text = '' text = ''
#!/usr/bin/env bash #!/usr/bin/env bash
# https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
swww init & swww init &
# Sets a random wallpaper
WALLPAPER_DIR=/etc/nixos/git/wallpapers/gruvbox WALLPAPER_DIR=/etc/nixos/git/wallpapers/gruvbox
swww img $WALLPAPER_DIR/wallpaper$((1 + $RANDOM % $(ls $WALLPAPER_DIR | wc -l))).jpg & swww img $WALLPAPER_DIR/wallpaper11.jpg &
# nm-applet --indicator &
waybar & waybar &
# Set up the idle management daemon # Set up the idle management daemon
@ -261,6 +261,7 @@
timeout 600 'hyprctl dispatch dpms off' \ timeout 600 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \ resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f' before-sleep 'swaylock -f'
mako mako
''; '';
}; };

View file

@ -74,7 +74,10 @@
greetd.tuigreet # Greeter greetd.tuigreet # Greeter
swayidle # Idle management daemon - Automatic lock screen swayidle # Idle management daemon - Automatic lock screen
swayosd # used for on-screen notifications for things like adjusting backlight, volume, etc swayosd # used for on-screen notifications for things like adjusting backlight, volume, etc
sway # for swaymsg nwg-bar
wlogout
ranger # TUI file manager
xdg-utils # Utilities for better X/Wayland integration
]; ];
# Enable sound with pipewire. # Enable sound with pipewire.

View file

@ -29,6 +29,7 @@
rsync rsync
git git
duf duf
ncdu
du-dust du-dust
home-manager home-manager
btop btop