This commit is contained in:
lostecho
2023-07-17 16:50:53 +08:00
parent 2b48086b22
commit 9c038a6cde
6 changed files with 48 additions and 32 deletions

View File

@@ -14,6 +14,7 @@ OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = , preferred, auto, auto
monitor = eDP-1, 1920x1080@60, auto, 1
monitor = DP-2, 2560x1440@75, auto, 1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
@@ -22,16 +23,17 @@ monitor = DP-2, 2560x1440@75, auto, 1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # Wayland magic (screen sharing etc.)
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # More wayland magic (screen sharing etc.)
exec-once = ~/.config/hypr/scripts/xdg-portal-hyprland
exec-once = ~/.config/hypr/scripts/bgaction
exec-once = ~/.local/share/hyprload/hyprload.sh
exec-once = ~/.config/hypr/scripts/xdg-portal-hyprland
exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = fcitx5 --replace -d
exec-once = udiskie &
exec-once = mako &
exec-once = clash &
exec-once = waybar &
exec-once = mako
exec-once = udiskie &
exec-once = blueman-applet
exec-once = fcitx5 --replace -d
exec-once = nm-applet --indicator
@@ -276,8 +278,8 @@ bindm = $mainMod SHIFT, mouse:272, resizewindow
# Brightness control
binde = $mainMod, F6, exec, ddcutil setvcp 10 + 10
binde = $mainMod, F5, exec, ddcutil setvcp 10 - 10
binde = , XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10
binde = , XF86MonBrightnessDown, exec, ddcutil setvcp 10 - 10
binde = , XF86MonBrightnessUp, exec, brightnessctl -c backlight set 1%-
binde = , XF86MonBrightnessDown, exec, brightnessctl -c backlight set +1%
# Sound control
binde = , F9, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%

View File

@@ -14,3 +14,4 @@ THEMEIS=$(readlink -f ~/.config/waybar/style.css | cut -d '-' -f2)
#fi
swww img -o DP-2 ~/.config/hypr/wallpaper-dark.jpg
swww img -o eDP-1 ~/.config/hypr/wallpaper-dark.jpg

View File

@@ -8,23 +8,26 @@
"height": 30,
"modules-left": [
"custom/launcher",
"clock",
"wlr/workspaces",
"custom/playerctl",
"custom/playerlabel"
"wlr/taskbar",
"hyprland/window"
//"custom/playerctl",
//"custom/playerlabel"
],
"modules-center": [
"hyprland/window",
"wlr/taskbar"
//"modules-center": [
//"hyprland/window",
//"wlr/taskbar"
],
//],
"modules-right": [
"custom/weather",
//"custom/weather_sway",
//"network",
"idle_inhibitor",
//"idle_inhibitor",
"cpu",
"memory",
"disk",
//"disk",
"temperature",
"battery",
//"custom/PBPbattery",
@@ -33,12 +36,12 @@
//"pulseaudio_pamixer#microphone",
//"custom/keyboard-layout",
"backlight#icon",
"backlight#value",
//"backlight#value",
"custom/updates",
"clock",
//"clock",
"tray",
//"custom/power",
"custom/lock_screen",
//"custom/lock_screen",
"custom/light_dark"
],
"custom/launcher": {
@@ -192,9 +195,9 @@
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
"format": "{icon} {capacity}%",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
@@ -207,10 +210,10 @@
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%{format_source}",
"format-bluetooth-muted": "{icon}{format_source}",
"format-muted": "",
"format-source": "{volume}%",
"format-bluetooth": " {volume}%", //"{icon} {volume}%", //{format_source}",
"format-bluetooth-muted": " ", //" {icon}", //{format_source}",
"format-muted": "",
"format-source": "{volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
@@ -269,6 +272,7 @@
},
"backlight#icon": {
"format": "{icon}",
"format": "{icon} {percent}%",
"format-icons": [""],
"on-scroll-down": "brightnessctl -c backlight set 1%-",
"on-scroll-up": "brightnessctl -c backlight set +1%"