Compare commits
3 Commits
77b88434d8
...
ed0576a512
Author | SHA1 | Date |
---|---|---|
Yushun Cheng | ed0576a512 | |
Yushun Cheng | 3dba70722c | |
Yushun Cheng | 6566c36822 |
|
@ -24,6 +24,7 @@ export TERMINAL=alacritty
|
|||
export GDK_BACKEND=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_FONT_DPI=144
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
|
||||
# Firefox
|
||||
export BROWSER=firefox
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Clash dashboard.
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
Restart=on-abort
|
||||
ExecStart=/usr/bin/env -C {{ .chezmoi.homeDir }}/.local/share/clash-dashboard python3 -m http.server --bind localhost 3000
|
|
@ -1,4 +1,4 @@
|
|||
case ${XDG_SESSION_TYPE} in
|
||||
'wayland' ) GDK_BACKEND=wayland ;;
|
||||
'wayland' ) export GDK_BACKEND=wayland ;;
|
||||
* )
|
||||
esac
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
case "${XDG_SESSION_TYPE}" in
|
||||
'wayland' ) export SDL_VIDEODRIVER=wayland ;;
|
||||
* )
|
||||
esac
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Clash Dashboard
|
||||
TryExec=firefox
|
||||
Exec=firefox http://localhost:3000
|
||||
Icon={{ .chezmoi.homeDir }}/.local/share/clash-dashboard/assets/logo.png
|
Loading…
Reference in New Issue