Compare commits

...

3 commits

Author SHA1 Message Date
a9bb3745b8 Added UwU 2023-11-21 13:34:32 +01:00
a30405a451 Update hyrland environment 2023-11-21 13:33:59 +01:00
384340ad2a Add GPU status to waybar 2023-11-14 15:58:32 +01:00
8 changed files with 221 additions and 155 deletions

View file

@ -8,7 +8,19 @@
"height": 50, "height": 50,
"modules-left": ["clock", "custom/weather", "hyprland/workspaces"], "modules-left": ["clock", "custom/weather", "hyprland/workspaces"],
"modules-center": ["hyprland/window"], "modules-center": ["hyprland/window"],
"modules-right": ["network", "bluetooth", "memory", "cpu", "temperature","custom/power_profile","battery","pulseaudio","pulseaudio#microphone","tray"], "modules-right": [
"network",
"bluetooth",
"memory",
"cpu",
"temperature",
"custom/power_profile",
"custom/gpu_status",
"battery",
"pulseaudio",
"pulseaudio#microphone",
"tray"
],
"hyprland/window": { "hyprland/window": {
"format": "{}" "format": "{}"
}, },
@ -16,7 +28,7 @@
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"all-outputs": true, "all-outputs": true,
"on-click": "activate", "on-click": "activate"
/* /*
"persistent_workspaces": { "persistent_workspaces": {
"1": [], "1": [],
@ -47,7 +59,7 @@
//shows the current weather and forecast //shows the current weather and forecast
"tooltip": true, "tooltip": true,
"format": "{}", "format": "{}",
"interval" : 30, "interval": 120,
"exec": "~/.config/waybar/scripts/waybar-wttr.py", "exec": "~/.config/waybar/scripts/waybar-wttr.py",
"return-type": "json" "return-type": "json"
}, },
@ -84,6 +96,15 @@
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"custom/gpu_status": {
"exec": "~/.config/waybar/scripts/gpu_status.sh",
"return-type": "json",
"interval": 2,
"tooltip": false,
"format": "{}",
"signal": 9
},
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"tooltip": false, "tooltip": false,
@ -139,7 +160,7 @@
"states": { "states": {
"critical": 90, "critical": 90,
"warning": 50 "warning": 50
}, }
}, },
"memory": { "memory": {
@ -162,4 +183,3 @@
"on-click": "/usr/bin/blueman-manager" "on-click": "/usr/bin/blueman-manager"
} }
} }

View file

@ -0,0 +1,16 @@
#!/bin/bash
ACTIVE_ICON='󰍹'
SUSPENDED_ICON='󰶐'
RESUMING_ICON='󱄄'
icon=$ACTIVE_ICON
status=$(cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status)
if [ "$status" == "suspended" ]; then
icon=$SUSPENDED_ICON
elif [ "$status" == "resuming" ]; then
icon=$RESUMING_ICON
fi
echo "{\"text\": \"$icon\", \"class\": \"$status\"}"

View file

@ -28,13 +28,13 @@ tooltip {
#workspaces button.active { #workspaces button.active {
color: #a6adc8; color: #a6adc8;
background: #3F84E5; background: #3f84e5;
border-radius: 10px; border-radius: 10px;
} }
#workspaces button.urgent { #workspaces button.urgent {
color: #11111b; color: #11111b;
background: #FC6471; background: #fc6471;
border-radius: 10px; border-radius: 10px;
} }
@ -44,6 +44,7 @@ tooltip {
} }
#custom-power_profile, #custom-power_profile,
#custom-gpu_status,
#custom-weather, #custom-weather,
#window, #window,
#clock, #clock,
@ -62,7 +63,6 @@ tooltip {
padding: 0px 10px; padding: 0px 10px;
margin: 3px 0px; margin: 3px 0px;
margin-top: 10px; margin-top: 10px;
border: 1px solid #181825;
} }
#memory { #memory {
@ -71,11 +71,11 @@ tooltip {
} }
#memory.warning { #memory.warning {
color: #EDAE49; color: #edae49;
} }
#memory.critical { #memory.critical {
color: #FC6471; color: #fc6471;
} }
#cpu { #cpu {
@ -84,11 +84,11 @@ tooltip {
} }
#cpu.warning { #cpu.warning {
color: #EDAE49; color: #edae49;
} }
#cpu.critical { #cpu.critical {
color: #FC6471; color: #fc6471;
} }
#temperature { #temperature {
@ -97,7 +97,7 @@ tooltip {
} }
#temperature.critical { #temperature.critical {
color: #FC6471; color: #fc6471;
} }
#backlight { #backlight {
@ -124,11 +124,21 @@ tooltip {
} }
#custom-power_profile.Performance { #custom-power_profile.Performance {
color: #FC6471; color: #fc6471;
} }
#custom-power_profile.Balanced { #custom-power_profile.Balanced {
color: #EDAE49; color: #edae49;
}
#custom-gpu_status {
color: #a6e3a1;
padding-top: 3px;
padding-left: 3px;
}
#custom-gpu_status:not(.suspended) {
color: #edae49;
} }
#window { #window {
@ -154,7 +164,7 @@ tooltip {
#bluetooth { #bluetooth {
color: #89b4fa; color: #89b4fa;
border-radius: 0px 10px 10px 0px; border-radius: 0px 10px 10px 0px;
margin-right: 10px margin-right: 10px;
} }
#pulseaudio { #pulseaudio {

5
bin/uwu-launcher Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
alacritty --class "uwu-uwu" -e /usr/bin/bash -c "uwu | lolcat && read" &
alacritty --class "uwu-neofetch" -e /usr/bin/bash -c "echo '' && neofetch && read" &
alacritty --class "uwu-btm" -e btm &

View file

@ -13,6 +13,7 @@ bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, L, exec, swaylock-hyprland bind = $mainMod, L, exec, swaylock-hyprland
bind = $mainMod, U, exec, ~/.local/bin/uwu-launcher
# Screenshots # Screenshots
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy

View file

@ -29,10 +29,9 @@ env = EDITOR, hx
env = MOZ_ENABLE_WAYLAND, 1 env = MOZ_ENABLE_WAYLAND, 1
# NVIDIA # NVIDIA
env = LIBVA_DRIVER_NAME,nvidia # env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia # env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1 env = WLR_NO_HARDWARE_CURSORS,1
# env = __EGL_VENDOR_LIBRARY_FILENAMES,/usr/share/glvnd/egl_vendor.d/50_mesa.json # env = __EGL_VENDOR_LIBRARY_FILENAMES,/usr/share/glvnd/egl_vendor.d/50_mesa.json
# env = __GLX_VENDOR_LIBRARY_NAME,mesa # env = __GLX_VENDOR_LIBRARY_NAME,mesa

View file

@ -19,3 +19,17 @@ windowrulev2 = center, class:(yuzu)
windowrulev2 = float, class:(PrismLauncher) windowrulev2 = float, class:(PrismLauncher)
# UWU command
windowrule = float, (uwu-uwu)
windowrule = size 470 650, (uwu-uwu)
windowrule = move 70% 15%, (uwu-uwu)
windowrule = float, (uwu-neofetch)
windowrule = size 820 490, (uwu-neofetch)
windowrule = move 10% 10%, (uwu-neofetch)
windowrule = float, (uwu-btm)
windowrule = size 1024 640, (uwu-btm)
windowrule = move 25% 50%, (uwu-btm)

1
sync
View file

@ -36,6 +36,7 @@ synced_files = [
("bin/togglescreen", "~/.local/bin/togglescreen"), ("bin/togglescreen", "~/.local/bin/togglescreen"),
("bin/mc-key-fix", "~/.local/bin/mc-key-fix"), ("bin/mc-key-fix", "~/.local/bin/mc-key-fix"),
("bin/x11-toggle-primary-gpu", "~/.local/bin/x11-toggle-primary-gpu"), ("bin/x11-toggle-primary-gpu", "~/.local/bin/x11-toggle-primary-gpu"),
("bin/uwu-launcher", "~/.local/bin/uwu-launcher"),
] ]