Move Sway to systemd
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
677da6b5bd
commit
2549bb1880
120
config-home.yaml
120
config-home.yaml
|
@ -22,7 +22,7 @@ dotfiles:
|
|||
src: .config/mpv
|
||||
d_nvim_config:
|
||||
actions:
|
||||
- vim-plug
|
||||
- vim-plug
|
||||
dst: ~/.config/nvim/conf.d
|
||||
src: .config/nvim/conf.d
|
||||
d_scripts:
|
||||
|
@ -166,79 +166,79 @@ dotfiles:
|
|||
profiles:
|
||||
Media:
|
||||
dotfiles:
|
||||
- f_beets_config
|
||||
- f_beets_whitelist
|
||||
- f_abcde.conf
|
||||
- d_mpv
|
||||
- f_youtube-dl_config
|
||||
- f_mpd.conf
|
||||
- f_beets_config
|
||||
- f_beets_whitelist
|
||||
- f_abcde.conf
|
||||
- d_mpv
|
||||
- f_youtube-dl_config
|
||||
- f_mpd.conf
|
||||
Sway:
|
||||
dotfiles:
|
||||
- d_sway
|
||||
- d_waybar
|
||||
- d_rofi
|
||||
- f_mako_config
|
||||
- f_redshift.conf
|
||||
- f_rofi-pass.conf
|
||||
- d_sway
|
||||
- d_waybar
|
||||
- d_rofi
|
||||
- f_mako_config
|
||||
- f_redshift.conf
|
||||
- f_rofi-pass.conf
|
||||
Pacman:
|
||||
dotfiles:
|
||||
- f_yay_config.json
|
||||
- f_makepkg.conf
|
||||
- f_yay_config.json
|
||||
- f_makepkg.conf
|
||||
Mirkwood:
|
||||
dotfiles:
|
||||
- d_systemd
|
||||
- f_tdesktop_lang.strings
|
||||
- f_gitconfig
|
||||
- f_mailcap
|
||||
- f_zprofile
|
||||
- f_mimeo_associations.txt
|
||||
- f_mpdscribble.conf
|
||||
- f_mpdris2.conf
|
||||
- f_ranger_commands.py
|
||||
- f_libra_config
|
||||
- f_ncmpcpp_bindings
|
||||
- f_zathurarc
|
||||
- f_youtube-viewer.conf
|
||||
- f_efm-langserver.yaml
|
||||
- f_fonts.conf
|
||||
- f_flashfocus.yml
|
||||
- f_config
|
||||
- d_efistub
|
||||
- d_systemd
|
||||
- f_zprofile
|
||||
- f_tdesktop_lang.strings
|
||||
- f_gitconfig
|
||||
- f_mailcap
|
||||
- f_mimeo_associations.txt
|
||||
- f_mpdscribble.conf
|
||||
- f_mpdris2.conf
|
||||
- f_ranger_commands.py
|
||||
- f_libra_config
|
||||
- f_ncmpcpp_bindings
|
||||
- f_zathurarc
|
||||
- f_youtube-viewer.conf
|
||||
- f_efm-langserver.yaml
|
||||
- f_fonts.conf
|
||||
- f_flashfocus.yml
|
||||
- f_config
|
||||
- d_efistub
|
||||
include:
|
||||
- Terminal
|
||||
- Media
|
||||
- Sway
|
||||
- Pacman
|
||||
- Terminal
|
||||
- Media
|
||||
- Sway
|
||||
- Pacman
|
||||
ReekyRaspberry:
|
||||
include:
|
||||
- Terminal
|
||||
- Terminal
|
||||
Rivendell:
|
||||
include:
|
||||
- Terminal
|
||||
- Media
|
||||
- Pacman
|
||||
- Terminal
|
||||
- Media
|
||||
- Pacman
|
||||
Terminal:
|
||||
dotfiles:
|
||||
- f_nvimpager_init.vim
|
||||
- f_ignore
|
||||
- f_rtv.cfg
|
||||
- d_zsh
|
||||
- f_zshrc
|
||||
- f_tmux.conf
|
||||
- f_ranger.conf
|
||||
- f_ssh.conf
|
||||
- f_authorized_keys
|
||||
- d_scripts
|
||||
- d_nvim_config
|
||||
- f_init.vim
|
||||
- f_coc-settings.json
|
||||
- f_gitconfig
|
||||
- f_alacritty.yml
|
||||
- f_nvimpager_init.vim
|
||||
- f_ignore
|
||||
- f_rtv.cfg
|
||||
- d_zsh
|
||||
- f_zshrc
|
||||
- f_tmux.conf
|
||||
- f_ranger.conf
|
||||
- f_ssh.conf
|
||||
- f_authorized_keys
|
||||
- d_scripts
|
||||
- d_nvim_config
|
||||
- f_init.vim
|
||||
- f_coc-settings.json
|
||||
- f_gitconfig
|
||||
- f_alacritty.yml
|
||||
AnittaPC:
|
||||
include:
|
||||
- Terminal
|
||||
- Pacman
|
||||
- Terminal
|
||||
- Pacman
|
||||
TakamakiPC:
|
||||
include:
|
||||
- Terminal
|
||||
- Pacman
|
||||
- Terminal
|
||||
- Pacman
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
# vim:ft=sway
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
output eDP-1
|
||||
}
|
|
@ -10,7 +10,7 @@ seat * hide_cursor 4000
|
|||
###### Borders ######
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused #8AC6F2 #8AC6F2 #292D3E #8AC6F2 #8AC6F2
|
||||
client.focused_active #292D3E #FFFFFF #FFFFFF #292D3E #292D3E
|
||||
client.focused_inactive #292D3E #FFFFFF #FFFFFF #292D3E #292D3E
|
||||
client.unfocused #292D3E #292D3E #FFFFFF #282828 #292D3E
|
||||
|
||||
for_window [app_id="^.*"] border pixel 4
|
15
home/.config/sway/conf.d/07-exec.conf
Normal file
15
home/.config/sway/conf.d/07-exec.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
# vim:ft=sway
|
||||
|
||||
exec {
|
||||
systemctl --user import-environment
|
||||
systemctl --user start sway-session.target
|
||||
}
|
||||
|
||||
exec_always {
|
||||
gsettings set $gnome-schema gtk-theme 'vimix-dark-doder'
|
||||
gsettings set $gnome-schema icon-theme 'Numix'
|
||||
gsettings set $gnome-schema cursor-theme 'Breeze'
|
||||
gsettings set $gnome-schema font-name 'Overpass 12'
|
||||
gsettings set $gnome-schema document-font-name 'Overpass 12'
|
||||
gsettings set $gnome-schema monospace-font-name 'Hack Nerd Font Mono 12'
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
# vim:ft=sway
|
||||
|
||||
exec {
|
||||
{%@@ if profile == "Mirkwood" @@%}
|
||||
nm-applet --indicator
|
||||
redshift-gtk -m wayland
|
||||
mpDris2
|
||||
evolution
|
||||
telegram-desktop
|
||||
syncthing-gtk -m
|
||||
mako
|
||||
$HOME/Scripts/swayidle.sh
|
||||
{%@@ elif profile == "Rivendell" @@%}
|
||||
kodi
|
||||
{%@@ endif @@%}
|
||||
/usr/lib/kdeconnectd
|
||||
kdeconnect-indicator
|
||||
/usr/bin/gnome-keyring-daemon --start --components=secrets
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
ydotoold
|
||||
wl-paste -t text --watch clipman store
|
||||
autotiling
|
||||
$HOME/Scripts/autorotate.sh
|
||||
squeekboard
|
||||
thunderbird
|
||||
mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
|
||||
}
|
||||
|
||||
exec_always {
|
||||
{%@@ if profile == "Mirkwood" @@%}
|
||||
bash $HOME/.config/sway/randr/laptop.sh
|
||||
{%@@ endif @@%}
|
||||
gsettings set $gnome-schema gtk-theme 'vimix-dark-doder'
|
||||
gsettings set $gnome-schema icon-theme 'Numix'
|
||||
gsettings set $gnome-schema cursor-theme 'Breeze'
|
||||
gsettings set $gnome-schema font-name 'Overpass 12'
|
||||
gsettings set $gnome-schema document-font-name 'Overpass 12'
|
||||
gsettings set $gnome-schema monospace-font-name 'Hack Nerd Font Mono 12'
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
XDG_SESSION_TYPE=wayland
|
||||
|
||||
# Fix java on wayland
|
||||
_JAVA_AWT_WM_NONREPARENTING=1
|
||||
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||
|
@ -15,5 +17,5 @@ MOZ_WEBRENDER=1
|
|||
# Fix redshift on wlroots
|
||||
WLR_DRM_NO_ATOMIC=1
|
||||
|
||||
# Make clutter programs use wayland
|
||||
CLUTTER_BACKEND=wayland
|
||||
# Use wayland in SDL2
|
||||
SDL_VIDEODRIVER=wayland
|
||||
|
|
10
home/.config/systemd/user/autorotate.service
Normal file
10
home/.config/systemd/user/autorotate.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Script for automatically rotating screen
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=%h/Scripts/autorotate.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/autotiling.service
Normal file
10
home/.config/systemd/user/autotiling.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Script for sway and i3 to automatically switch the horizontal / vertical window split orientation
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/autotiling
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -4,7 +4,7 @@ PartOf=graphical-session.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/clipman -d
|
||||
ExecStart=/usr/bin/wl-paste -t text --watch clipman store
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
||||
|
|
10
home/.config/systemd/user/gnome-keyring.service
Normal file
10
home/.config/systemd/user/gnome-keyring.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Stores passwords and encryption keys
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/gnome-keyring-daemon --start --components=secrets
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/kdeconnect-indicator.service
Normal file
10
home/.config/systemd/user/kdeconnect-indicator.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Indicator and UI for KDE Connect
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/kdeconnect-indicator
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/kdeconnectd.service
Normal file
10
home/.config/systemd/user/kdeconnectd.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=KDE Connect daemon
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/kdeconnectd
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/mpDris2.service
Normal file
10
home/.config/systemd/user/mpDris2.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=MPRIS2 support for MPD
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/mpDris2
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/polkit-gnome.service
Normal file
10
home/.config/systemd/user/polkit-gnome.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Legacy polkit authentication agent for GNOME
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/redshift-gtk-service
Normal file
10
home/.config/systemd/user/redshift-gtk-service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Adjusts the color temperature of your screen according to your surroundings.
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/redshift-gtk -m wayland
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -1,17 +1,31 @@
|
|||
[Unit]
|
||||
Description=sway - SirCmpwn's Wayland window manager
|
||||
Documentation=man:sway(5)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-%h/.config/sway/env
|
||||
ExecStart=/usr/bin/sway
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
TimeoutStopSec=10
|
||||
ExecStartPre=/usr/bin/chvt %I
|
||||
ExecStart=/usr/bin/dbus-launch --exit-with-session /usr/bin/sway
|
||||
TTYPath=/dev/tty%I
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
PAMName=login
|
||||
User=<user>
|
||||
WorkingDirectory=/home/<user>
|
||||
Environment=XDG_RUNTIME_DIR=/run/user/1000
|
||||
Environment=QT_WAYLAND_FORCE_DPI=100
|
||||
Environment=QT_PLUGIN_PATH=/usr/lib/kde4/plugins/
|
||||
Environment=QT_QPA_PLATFORM=wayland
|
||||
Environment=QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||
Environment=QT_QPA_PLATFORMTHEME=gtk3
|
||||
Environment=QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
||||
Environment=GDK_BACKEND=wayland
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
StandardInput=tty
|
||||
StandardError=journal
|
||||
StandardOutput=journal
|
||||
Nice=-5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=graphical.target
|
||||
Alias=display-manager.service
|
||||
|
|
10
home/.config/systemd/user/telegram-desktop.service
Normal file
10
home/.config/systemd/user/telegram-desktop.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Official Telegram Desktop client
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/telegram-desktop
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/thunderbird.service
Normal file
10
home/.config/systemd/user/thunderbird.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Standalone mail and news reader from mozilla.org
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/thunderbird
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
12
home/.config/systemd/user/wob.service
Normal file
12
home/.config/systemd/user/wob.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=A lightweight overlay volume/backlight/progress/anything bar for Wayland
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/bin/mkfifo /tmp/sway.wob
|
||||
ExecStart=/usr/bin/tail -f /tmp/sway.wob | wob
|
||||
ExecStop=/usr/bin/rm /tmp/sway.wob
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/ydotoold.service
Normal file
10
home/.config/systemd/user/ydotoold.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Generic command-line automation tool
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/ydotoold
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -8,9 +8,8 @@
|
|||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
"custom/yay",
|
||||
"cpu",
|
||||
"network",
|
||||
"temperature",
|
||||
"memory",
|
||||
"battery",
|
||||
"clock",
|
||||
"tray"
|
||||
|
@ -42,6 +41,16 @@
|
|||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
"format": "{ifname}",
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr} ",
|
||||
"format-disconnected": "Disconnected ", //An empty format will hide the module.
|
||||
"tooltip-format": "{ifname}",
|
||||
"tooltip-format-wifi": "{ifname} {frequency}MHz ",
|
||||
"tooltip-format-ethernet": "{ifname} ",
|
||||
"tooltip-format-disconnected": "Disconnected"
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
|
@ -78,15 +87,6 @@
|
|||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
"tooltip": false,
|
||||
"interface": "wg0",
|
||||
"format-ethernet": "VPN Connected",
|
||||
"format-disconnected": "VPN disconnected ⚠",
|
||||
"on-click": "sudo systemctl start wg-quick@wg0.service",
|
||||
"on-click-right": "sudo systemctl stop wg-quick@wg0.service",
|
||||
"interval": 10
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
//"scroll-step": 1,
|
||||
|
|
25
root/etc/systemd/system/sway@.service
Normal file
25
root/etc/systemd/system/sway@.service
Normal file
|
@ -0,0 +1,25 @@
|
|||
[Unit]
|
||||
Description=sway - SirCmpwn's Wayland window manager
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/chvt %I
|
||||
ExecStart=/usr/bin/dbus-launch --exit-with-session /usr/bin/sway
|
||||
TTYPath=/dev/tty%I
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
PAMName=login
|
||||
User=frodo
|
||||
WorkingDirectory=/home/frodo
|
||||
Environment=XDG_RUNTIME_DIR=/run/user/1000
|
||||
Environment=QT_PLUGIN_PATH=/usr/lib/kde4/plugins/
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
StandardInput=tty
|
||||
StandardError=journal
|
||||
StandardOutput=journal
|
||||
Nice=-5
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
Alias=display-manager.service
|
Loading…
Reference in a new issue