blob: 49b9aae20aceabb091c0da5a5fb90753db1bd0b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
hl.on("hyprland.start", function()
--
-- AUTOSTART --
--
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
-- Or execute your favorite apps at launch like this:
-- FIX CURSOR because keep reseting(see: https://www.reddit.com/r/hyprland/comments/1fgfmqb/gtk_apps_not_respecting_cursor_theme/)
-- hl.exec_cmd('gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Classic')
-- hl.exec_cmd('hyprctl setcursor Bibata-Modern-Classic 24')
-- Launch hyprland plugins
hl.exec_cmd('hyprpm reload || hyprpm update')
-- Start pyprland daemon
-- hl.exec_cmd('pyprland')
-- Waybar
-- hl.exec_cmd('waybar')
-- Quickshell
hl.exec_cmd('just -f ~/.config/quickshell/qml_plugin/justfile run release')
-- Hypr-Eco
-- hl.exec_cmd('hyprpaper')
-- hl.exec_cmd($'SCRIPTSDIR/hyprpaper.sh')
hl.exec_cmd(vars.bgChangerBin)
-- hl.exec_cmd($'SCRIPTSDIR/mpvpaper.sh')
hl.exec_cmd('hypridle')
hl.exec_cmd('hyprsunset')
-- XWayland
hl.exec_cmd('xrdb -merge ~/.Xresources')
-- Auth agent
-- hl.exec_cmd('systemctl --user start plasma-polkit-agent -- doesnt respect themeing')
-- hl.exec_cmd(/'usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1')
hl.exec_cmd('systemctl --user start hyprpolkitagent')
-- keyring agent
hl.exec_cmd('gnome-keyring-daemon --start --components=pkcs11,secrets,ssh')
-- Location service
hl.exec_cmd('/usr/lib/geoclue-2.0/demos/agent &')
-- input method
hl.exec_cmd('fcitx5 -d')
-- app armor notifications
hl.exec_cmd('aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log')
-- Clipboard history
-- hl.exec_cmd('wl-paste --watch cliphist store')
hl.exec_cmd('wl-paste --type text --watch cliphist store')
hl.exec_cmd('wl-paste --type image --watch cliphist store')
-- hl.exec_cmd('clipsync')
hl.exec_cmd('wl-clip-persist --clipboard both')
-- Notification agent
hl.exec_cmd('while true; do swaync; done')
-- window swicher daemon
hl.exec_cmd('hyprswitch init --size-factor 5')
-- audio auto adjust
-- hl.exec_cmd($'HOME/scripts/audio-autoAdjust.sh --daemon')
hl.exec_cmd('while true; do $HOME/.cargo/bin/audio-adjuster; done')
-- effect for audio
hl.exec_cmd('while true; do easyeffects --gapplication-service; done')
-- startup sound
hl.exec_cmd('$HOME/scripts/startupsound.sh')
-- misc
-- sys hud
-- hl.exec_cmd('syshud -M audio_in,audio_out,brightness -b /sys/bus/ddcci/devices/ddcci13/backlight/ddcci13/')
hl.exec_cmd('while true; do syshud; done')
-- night light
-- hl.exec_cmd('gammastep -l geoclue2')
-- hl.exec_cmd('$HOME/scripts/hyprsunset.sh')
hl.exec_cmd('systemd-inhibit --who="Hyprland" --why="Handling power key" --what=handle-power-key sleep infinity')
-- user applications
hl.exec_cmd('udiskie')
hl.exec_cmd('bitwarden-desktop')
-- hl.exec_cmd('kdeconnectd')
-- hl.exec_cmd('killall input-leap input-leaps; input-leap -- works with https://github.com/3l0w/Hyprland/tree/feat/input-capture-impl')
hl.exec_cmd('deskflow-core server -s ~/.config/Deskflow/deskflow-server.conf')
hl.exec_cmd('nextcloud --background')
-- hl.exec_cmd(['noinitialfocus; workspace, special] localsend --hidden')
-- hl.exec_cmd(['workspace 6 silent; noinitialfocus] discord --start-minimized')
hl.exec_cmd('beeper $waylandarg --no-sandbox --hidden --default-frame --enable-wayland-ime')
-- hl.exec_cmd('bash -c "echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device"')
-- Notify if stuff is already started
hl.exec_cmd("warp-cli status | grep Connect && notify-send 'warp-vpn' 'connected'")
hl.exec_cmd(
"pactl get-source-mute @DEFAULT_SOURCE@ | grep 'Mute: yes' >/dev/null && notify-send 'microphone' 'muted'")
hl.exec_cmd("modprobe uvcvideo || notify-send 'uvcvideo' 'disabled'")
hl.exec_cmd("pgrep -f gpu-screen-recorder && notify-send 'recorder' 'recording'")
-- restore session
hl.exec_cmd('hyprsession')
-- restore stuff like music etc
hl.exec_cmd(vars.SCRIPTSDIR .. '/hypridle.sh --stopidle')
-- spam of notification at start(e.g. chromium)
hl.exec_cmd(
'if [[ $(swaync-client --get-dnd) == "false" ]]; then swaync-client --dnd-on && sleep 3 && swaync-client --dnd-off; fi')
-- thunar launch faster
hl.exec_cmd('while true; do thunar --daemon; done')
-- alacritty
-- hl.exec_cmd('while true; do alacritty --daemon; done')
-- ghostty
-- hl.exec_cmd(['workspace, special] ghostty')
-- backlight
-- hl.exec_cmd('wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video9 -x yuv420p')
hl.exec_cmd('while true; do hyperhdr; done')
-- hl.exec_cmd('video-guard')
hl.exec_cmd('while true; do ~/scripts/flipper-ac.py "$(nc -lp 4883)"; done')
hl.exec_cmd('while true; do nc -lp 4884 -e "~/scripts/flipper-ac.py statusBool"; done')
end)
|