update config

This commit is contained in:
lostecho
2023-07-12 21:18:59 +08:00
parent ec395e9a08
commit 7886b23099
8 changed files with 30 additions and 8 deletions

View File

@@ -13,9 +13,7 @@ OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# autogenerated = 1 # remove this line to remove the warning
# See https://wiki.hyprland.org/Configuring/Monitors/
#monitor=eDP-1,1920x1080@60,0x1440,1
#monitor=DP-1,preferred,auto,1
monitor=DP-2,2560x1440@75,0x0,1
monitor=DP-2,2560x1440@75,auto,1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
@@ -41,7 +39,7 @@ exec-once = udiskie &
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
#source = ~/.config/hypr/env_var.conf
source = ~/.config/hypr/media-binds.conf
#source = ~/.config/hypr/media-binds.conf
# Some default env vars.
env = XCURSOR_SIZE,24

0
dotfiles/config/hypr/hyprv_util Executable file → Normal file
View File

View File

@@ -1,14 +1,14 @@
#!/usr/bin/bash
#start swwww
swww query || swww init
swww init
#figure out which waybar theme is set
THEMEIS=$(readlink -f ~/.config/waybar/style.css | cut -d '-' -f2)
#show the correct wallpapper based on the theme
if [ $THEMEIS == "dark.css" ]; then
swww img -o eDP-1 ~/.config/hypr/wallpaper-dark.jpg && swww img -o DP-1 ~/.config/hypr/wallpaper-dark.jpg
swww img -o DP-2 ~/.config/hypr/wallpaper-dark.jpg
else
swww img -o eDP-1 ~/.config/hypr/wallpaper.jpg && swww img -o DP-1 ~/.config/hypr/wallpaper.jpg
swww img -o DP-2 ~/.config/hypr/wallpaper.jpg
fi