Compare commits

...

3 Commits

Author SHA1 Message Date
Yushun Cheng ed0576a512 [clash] Add clash-dashboard configurations. 2022-07-28 10:52:59 +08:00
Yushun Cheng 3dba70722c [sdl] Set wayland configuration for SDL. 2022-07-27 08:13:38 +08:00
Yushun Cheng 6566c36822 [gtk] Fix GDK_BACKEND for wayland. 2022-07-25 18:19:34 +08:00
5 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
case ${XDG_SESSION_TYPE} in
'wayland' ) GDK_BACKEND=wayland ;;
'wayland' ) export GDK_BACKEND=wayland ;;
* )
esac

View File

@ -0,0 +1,4 @@
case "${XDG_SESSION_TYPE}" in
'wayland' ) export SDL_VIDEODRIVER=wayland ;;
* )
esac

View File

@ -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