-
Notifications
You must be signed in to change notification settings - Fork 2
/
hologram-sway-desktop.pkg.toml
100 lines (90 loc) · 2.38 KB
/
hologram-sway-desktop.pkg.toml
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
[package]
name = "hologram-sway-desktop"
version = "1.0.10"
description = "hologram: Wayland desktop using Sway compositor and selected KDE apps"
requires = [
"hologram-base-gui",
"sway",
"swaybg",
"swaylock",
"sddm",
"xorg-server-xwayland",
"xdg-desktop-portal-wlr",
# Wayland tools
"bemenu",
"bemenu-wayland",
"grim",
"i3status-rust",
"mako",
"slurp",
"wl-clipboard",
"wev",
"wtype",
# terminal
"alacritty",
# selected KDE applications
"dolphin", # for drag-and-drop of images into kid3
"filelight",
"gwenview", # for cropping screenshots
"kcharselect",
"kcolorchooser",
"kolourpaint",
"kid3",
# platform integration for non-KDE desktop
"qt5ct",
"qt5-wayland",
# cursor theme
"breeze",
# IME
"fcitx",
"fcitx-configtool",
"fcitx-mozc",
"fcitx-ui-light",
]
[[symlink]]
path = "/etc/systemd/system/display-manager.service"
target = "/usr/lib/systemd/system/sddm.service"
[[file]]
path = "/etc/sddm.conf.d/30-sway-desktop.conf"
content = """
[Autologin]
User=stefan
Session=sway.desktop
[Theme]
Current=breeze
"""
################################################################################
# set several environment variables only when running under Sway
[[file]]
path = "/etc/profile.d/sway-env.sh"
content = '''
if [[ "${DESKTOP_SESSION}" == *sway* ]]; then
# make xdg-desktop-portal choose the wlr portal
export XDG_CURRENT_DESKTOP=sway
# set theme for Qt 5 applications
export QT_QPA_PLATFORMTHEME=qt5ct
# make Firefox use Wayland
export MOZ_ENABLE_WAYLAND=1
# setup for IME daemon (will be started as part of sway config)
export GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx
fi
'''
################################################################################
# declare a target for services that only need to be started under Sway, not
# under Plasma
[[file]]
path = "/home/stefan/.config/systemd/user/sway-session.target"
content = '''
[Unit]
Description=Services that are only run within Sway
Wants=mako.service xdg-desktop-portal-wlr.service
'''
[[file]]
path = "/home/stefan/.config/systemd/user/mako.service"
content = '''
[Unit]
Description=Mako notification daemon
[Service]
ExecStart=/usr/bin/mako --font 'Hack 12' --width 400 --default-timeout 10000
Restart=always
'''