mirror of
				https://github.com/Stunkymonkey/dotfiles.git
				synced 2025-10-31 02:12:10 +01:00 
			
		
		
		
	[systemd] revert mako and swayidle to start via sway
This commit is contained in:
		
							parent
							
								
									d14503cf00
								
							
						
					
					
						commit
						62be429c6d
					
				
					 4 changed files with 24 additions and 15 deletions
				
			
		|  | @ -52,9 +52,7 @@ | ||||||
| - link: | - link: | ||||||
|     ~/.config/i3status/config: i3/i3status |     ~/.config/i3status/config: i3/i3status | ||||||
|     ~/.local/bin/lock: sway/lock.sh |     ~/.local/bin/lock: sway/lock.sh | ||||||
|     ~/.config/systemd/user/swayidle.service: sway/swayidle.service |  | ||||||
|     ~/.config/mako/config: mako/config |     ~/.config/mako/config: mako/config | ||||||
|     ~/.config/systemd/user/mako.service: mako/mako.service |  | ||||||
|     ~/.config/redshift.conf: redshift/redshift.conf |     ~/.config/redshift.conf: redshift/redshift.conf | ||||||
|     ~/.config/redshift/hooks/hook.sh: redshift/hook.sh |     ~/.config/redshift/hooks/hook.sh: redshift/hook.sh | ||||||
|     ~/.config/rofi/config.rasi: rofi/config.rasi |     ~/.config/rofi/config.rasi: rofi/config.rasi | ||||||
|  | @ -76,9 +74,9 @@ | ||||||
|     ~/.local/bin/clean: bin/clean.sh |     ~/.local/bin/clean: bin/clean.sh | ||||||
| 
 | 
 | ||||||
| # systemd | # systemd | ||||||
| - shell: | #- shell: | ||||||
|     - ["systemctl enable --user mako", "enable mako"] | #    - ["systemctl enable --user $PWD/mako/mako.service --now", "enable mako"] | ||||||
|     - ["systemctl enable --user swayidle", "enable swayidle"] | #    - ["systemctl enable --user $PWD/sway/swayidle.service --now", "enable swayidle"] | ||||||
| 
 | 
 | ||||||
| - shell: | - shell: | ||||||
|     - ["git submodule update --init --jobs $(nproc) --recursive", "Installing submodules"] |     - ["git submodule update --init --jobs $(nproc) --recursive", "Installing submodules"] | ||||||
|  |  | ||||||
|  | @ -3,9 +3,12 @@ Description=A lightweight Wayland notification daemon | ||||||
| Documentation=man:mako(1) | Documentation=man:mako(1) | ||||||
| PartOf=graphical-session.target | PartOf=graphical-session.target | ||||||
| 
 | 
 | ||||||
| [Service] |  | ||||||
| Type=simple |  | ||||||
| ExecStart=/usr/bin/mako |  | ||||||
| 
 |  | ||||||
| [Install] | [Install] | ||||||
| WantedBy=sway-session.target | WantedBy=graphical-session.target | ||||||
|  | 
 | ||||||
|  | [Service] | ||||||
|  | Type=dbus | ||||||
|  | BusName=org.freedesktop.Notifications | ||||||
|  | ExecStart=/usr/bin/mako | ||||||
|  | RestartSec=5 | ||||||
|  | Restart=always | ||||||
|  |  | ||||||
|  | @ -28,6 +28,13 @@ output * bg #0C0C0D solid_color | ||||||
| exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | ||||||
| exec nm-applet --indicator | exec nm-applet --indicator | ||||||
| exec gnome-keyring-daemon --start --components secrets | exec gnome-keyring-daemon --start --components secrets | ||||||
|  | exec swayidle -w \ | ||||||
|  | 	timeout 285 'notify-send -a lockscreen -c lock-warn -u critical -t 14900 -i system-lock-screen "Locking Screen" "Will Lock Screen in 15s"' \ | ||||||
|  | 	timeout 300 '~/.dotfiles/sway/lock.sh' \ | ||||||
|  | 	timeout 600 'swaymsg "output * dpms off"' \ | ||||||
|  | 	resume 'swaymsg "output * dpms on"' \ | ||||||
|  | 	before-sleep '~/.dotfiles/sway/lock.sh' | ||||||
|  | exec mako | ||||||
| exec sleep 2 && QSyncthingTray | exec sleep 2 && QSyncthingTray | ||||||
| exec telegram-desktop -startintray | exec telegram-desktop -startintray | ||||||
| exec /usr/lib/geoclue-2.0/demos/agent | exec /usr/lib/geoclue-2.0/demos/agent | ||||||
|  | @ -81,7 +88,7 @@ bindsym $mod+e exec subl3 | ||||||
| bindsym $mod+w exec firefox | bindsym $mod+w exec firefox | ||||||
| bindsym $mod+u exec feedreader | bindsym $mod+u exec feedreader | ||||||
| 
 | 
 | ||||||
| # dunst | # mako | ||||||
| bindsym $mod+dead_circumflex exec makoctl dismiss | bindsym $mod+dead_circumflex exec makoctl dismiss | ||||||
| bindsym $mod+Shift+dead_circumflex exec makoctl dismiss --all | bindsym $mod+Shift+dead_circumflex exec makoctl dismiss --all | ||||||
| bindsym $mod+grave exec makoctl dismiss | bindsym $mod+grave exec makoctl dismiss | ||||||
|  |  | ||||||
|  | @ -1,7 +1,9 @@ | ||||||
| [Unit] | [Unit] | ||||||
| Description=Idle manager for Wayland | Description=Idle manager for Wayland | ||||||
| Documentation=man:swayidle(1) | Documentation=man:swayidle(1) | ||||||
| PartOf=graphical-session.target | 
 | ||||||
|  | [Install] | ||||||
|  | WantedBy=graphical-session.target | ||||||
| 
 | 
 | ||||||
| [Service] | [Service] | ||||||
| Type=simple | Type=simple | ||||||
|  | @ -11,6 +13,5 @@ ExecStart=/usr/bin/swayidle -w \ | ||||||
| 	timeout 600 'swaymsg "output * dpms off"' \ | 	timeout 600 'swaymsg "output * dpms off"' \ | ||||||
| 	resume 'swaymsg "output * dpms on"' \ | 	resume 'swaymsg "output * dpms on"' \ | ||||||
| 	before-sleep '~/.dotfiles/sway/lock.sh' | 	before-sleep '~/.dotfiles/sway/lock.sh' | ||||||
| 
 | RestartSec=5 | ||||||
| [Install] | Restart=always | ||||||
| WantedBy=sway-session.target |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler