Compare commits
16 Commits
de693c786d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
f1b6bcb4c5
|
|||
|
4f77f73860
|
|||
|
b76e27d466
|
|||
|
b58473de89
|
|||
|
8ad47eff6a
|
|||
|
e9d9ec86a3
|
|||
|
262acb7d8b
|
|||
|
53ebb35539
|
|||
|
9d7e338070
|
|||
|
9273a6cb4d
|
|||
|
b6fa9dc31e
|
|||
|
f659be1b00
|
|||
|
27225053bd
|
|||
|
e0f9e19c58
|
|||
|
3b2cc7714b
|
|||
|
f0530f3fff
|
@@ -53,7 +53,7 @@ graph_symbol_net = "default"
|
||||
graph_symbol_proc = "default"
|
||||
|
||||
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
|
||||
shown_boxes = "cpu mem net proc"
|
||||
shown_boxes = "mem net proc cpu"
|
||||
|
||||
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||
update_ms = 2000
|
||||
|
||||
@@ -5,19 +5,20 @@
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once = gnome-keyring-daemon --start --components=secrets
|
||||
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP
|
||||
exec-once = waybar
|
||||
exec-once = swww-daemon
|
||||
exec-once = swaync
|
||||
exec-once = sh -c "/home/stereov/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox %u & sleep 6 && hyprctl dispatch closewindow class:jetbrains-toolbox"
|
||||
exec-once = "/home/stereov/Developer/antistereov/randrwall/randrwall.py reload"
|
||||
exec-once = ~/.config/hypr/scripts/cover-listener.sh
|
||||
exec-once = hypridle
|
||||
|
||||
exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark'
|
||||
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
||||
|
||||
exec-once = curl -s https://zenquotes.io/api/random > ~/.cache/quote.json
|
||||
exec-once = "/usr/libexec/polkit-mate-authentication-agent-1"
|
||||
|
||||
exec-once = seafile-applet
|
||||
exec-once = flatpak run org.signal.Signal
|
||||
|
||||
@@ -16,6 +16,10 @@ env = AWT_TOOLKIT,MToolkit
|
||||
env = WINIT_X11_SCALE_FACTOR,1
|
||||
env = XWAYLAND_NO_GLAMOR,0
|
||||
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
@@ -6,12 +6,24 @@ general {
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 151 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
timeout = 290
|
||||
on-timeout = ~/.config/hypr/scripts/dim-display.sh dim
|
||||
on-resume = ~/.config/hypr/scripts/dim-display.sh restore
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
timeout = 300
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300
|
||||
on-timeout = ~/.config/hypr/scripts/dim-keyboard.sh dim
|
||||
on-resume = ~/.config/hypr/scripts/dim-keyboard.sh restore
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 305 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant = altgr-intl
|
||||
kb_options = caps:swapescape
|
||||
kb_options = caps:escape
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
35
hypr/scripts/dim-display.sh
Executable file
35
hypr/scripts/dim-display.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCREEN_DEVICE="amdgpu_bl1"
|
||||
|
||||
STATE_DIR="${XDG_RUNTIME_DIR:-/tmp}/hypridle"
|
||||
SCREEN_STATE_FILE="$STATE_DIR/screen"
|
||||
|
||||
mkdir -p "$STATE_DIR"
|
||||
|
||||
save_current() {
|
||||
brightnessctl -d "$SCREEN_DEVICE" g >"$SCREEN_STATE_FILE"
|
||||
}
|
||||
|
||||
dim() {
|
||||
save_current
|
||||
brightnessctl -d "$SCREEN_DEVICE" set 10%
|
||||
}
|
||||
|
||||
restore() {
|
||||
[[ -f "$SCREEN_STATE_FILE" ]] && brightnessctl -d "$SCREEN_DEVICE" s "$(cat "$SCREEN_STATE_FILE")"
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
dim)
|
||||
dim
|
||||
;;
|
||||
restore)
|
||||
restore
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {dim|restore}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
35
hypr/scripts/dim-keyboard.sh
Executable file
35
hypr/scripts/dim-keyboard.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
KBD_DEVICE="chromeos::kbd_backlight"
|
||||
|
||||
STATE_DIR="${XDG_RUNTIME_DIR:-/tmp}/hypridle"
|
||||
KBD_STATE_FILE="$STATE_DIR/kbd"
|
||||
|
||||
mkdir -p "$STATE_DIR"
|
||||
|
||||
save_current() {
|
||||
brightnessctl -d "$KBD_DEVICE" g >"$KBD_STATE_FILE"
|
||||
}
|
||||
|
||||
dim() {
|
||||
save_current
|
||||
brightnessctl -d "$KBD_DEVICE" set 0
|
||||
}
|
||||
|
||||
restore() {
|
||||
[[ -f "$KBD_STATE_FILE" ]] && brightnessctl -d "$KBD_DEVICE" s "$(cat "$KBD_STATE_FILE")"
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
dim)
|
||||
dim
|
||||
;;
|
||||
restore)
|
||||
restore
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {dim|restore}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -57,7 +57,7 @@ alt + shift - 0 : yabai -m window --space 10
|
||||
# Toggle pseudo scratchpad window: float, sticky, and center it on grid
|
||||
alt - p : yabai -m window --toggle sticky --toggle float --grid 4:4:1:1:2:2
|
||||
|
||||
lalt - return : open -a kitty --new
|
||||
lalt - return : open -a kitty
|
||||
lalt - b : open -a "Zen" --new
|
||||
lalt - e : open -a "Finder" --new
|
||||
lalt - e : open -a "Finder"
|
||||
lalt - w : skhd -k "cmd - w"
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
"gtk-layer-shell": true,
|
||||
"passthrough": false,
|
||||
"fixed-center": true,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"cpu",
|
||||
"memory",
|
||||
@@ -20,7 +23,7 @@
|
||||
"battery",
|
||||
"tray",
|
||||
"custom/notification",
|
||||
"custom/power",
|
||||
"custom/power"
|
||||
],
|
||||
"mpris": {
|
||||
"format": "{cover_art} {artist} - {title}",
|
||||
@@ -36,7 +39,7 @@
|
||||
"window-rewrite": {
|
||||
"class<*>": " ",
|
||||
"class<firefox>": " ",
|
||||
"class<app.zen_browser.zen>": " " ,
|
||||
"class<app.zen_browser.zen>": " ",
|
||||
"class<kitty>": " ",
|
||||
"class<com.seafile.seafile-applet>": " ",
|
||||
"class<org.gnome.Nautilus>": " ",
|
||||
@@ -44,7 +47,8 @@
|
||||
"class<chromium-browser>": " ",
|
||||
"class<chrome-web.telegram.org__-Default>": " ",
|
||||
"class<chrome-music.youtube.com__-Default>": " "
|
||||
}
|
||||
},
|
||||
"window-rewrite-default": " "
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": "{title}",
|
||||
@@ -55,7 +59,6 @@
|
||||
"": " Empty Workspace"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"show-passive-items": true,
|
||||
"spacing": 10,
|
||||
@@ -96,18 +99,31 @@
|
||||
"format-muted": " muted",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"default": [" ", " ", " "],
|
||||
"default": [
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{icon} {capacity}%",
|
||||
"format-plugged": "{icon} {capacity}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", ""],
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"states": {
|
||||
"critical": 15,
|
||||
"warning": 30,
|
||||
"warning": 30
|
||||
},
|
||||
"events": {
|
||||
"on-discharging-critical": "notify-send -u critical 'Low Battery'"
|
||||
@@ -115,12 +131,12 @@
|
||||
},
|
||||
"custom/sep": {
|
||||
"format": "|",
|
||||
"tooltip": false,
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/power": {
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout -p layer-shell &",
|
||||
"format": "⏻",
|
||||
"format": "⏻"
|
||||
},
|
||||
"custom/nowplaying": {
|
||||
"exec": "~/.config/waybar/scripts/nowplaying.sh",
|
||||
@@ -142,7 +158,7 @@
|
||||
},
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"return-type": "json",
|
||||
"tooltip": false,
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
@@ -161,7 +177,12 @@
|
||||
"network": {
|
||||
"interface": "wlp1s0",
|
||||
"format": "",
|
||||
"format-icons": [" ", " ", " ", " "],
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
],
|
||||
"format-wifi": "{icon} {essid}",
|
||||
"format-ethernet": " Ethernet",
|
||||
"format-disconnected": " Disconnected",
|
||||
|
||||
@@ -42,6 +42,8 @@ jetbrains_dialogs=(
|
||||
"^Choose Package$"
|
||||
"^Move Package$"
|
||||
"^Move$"
|
||||
"^Git Editor$"
|
||||
"^Create New Tag"
|
||||
)
|
||||
|
||||
for title in "${jetbrains_dialogs[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user