Fixed autostart file

This commit is contained in:
Tibo De Peuter 2022-10-13 14:42:58 +02:00
parent 4f556c36f4
commit 011b3b5566
3 changed files with 41 additions and 25 deletions

View file

@ -1,22 +0,0 @@
#
# ~/.config/sway/autostart
# List of applications to autostart
#
# Move to this workspace on startup
workspace 0:¯\_(ツ)_/¯
# Idle script
exec_always "~/.scripts/idle.sh"
# Gamma and brightness
exec clight &> /dev/null
# Notification manager
exec dunst -verbosity crit
# Fix [Slow launch for some GTK apps](https://github.com/swaywm/sway/issues/5732)
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Fix JetBrain IDE's showing properly
exec wmname LG3D

35
config/sway/autostart.sh Executable file
View file

@ -0,0 +1,35 @@
#!/bin/bash
#
# ~/.config/sway/autostart.sh
# List of applications to autostart
#
function execute () {
setsid --fork $SHELL -c "${1}" &> /dev/null
}
# Idle script
execute "~/.scripts/idle.sh"
# Gamma and brightness
execute "clight"
# Notification manager
execute "dunst -verbosity crit"
# Fix [Slow launch for some GTK apps](https://github.com/swaywm/sway/issues/5732)
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Fix JetBrain IDE's showing properly
wmname LG3
sleep 3
# --- Everything that requires tray to be active ---
# Nextcloud client
execute "nextcloud --background"
# Activity watch server & client
execute "aw-qt"

View file

@ -6,7 +6,6 @@
# Import other config files # Import other config files
include { include {
autostart
commands commands
modes modes
style style
@ -43,7 +42,7 @@ output 'Samsung Electric Company SAMSUNG 0x00000001' {
# Focus # Focus
focus_follows_mouse no focus_follows_mouse no
floating_modifier Mod4 normal floating_modifier Mod4 normal
# Window rules # Window rules
for_window [window_role="pop-up"] floating enable for_window [window_role="pop-up"] floating enable
@ -51,5 +50,9 @@ for_window [window_role="task_dialog"] floating enable
for_window [class="Qalculate"] floating enable for_window [class="Qalculate"] floating enable
for_window [class="Caprine"] floating enable, border normal 2 for_window [class="Caprine"] floating enable, border normal 2
for_window [class="be.ugent"] floating enable # IntelliJ Java programs
for_window [title="^FZF-Jump$"] floating enable, border pixel 0, resize set 600 350 for_window [title="^FZF-Jump$"] floating enable, border pixel 0, resize set 600 350
for_window [class="^Betterbird$"] move container to workspace "11:Soc"
exec "~/.config/sway/autostart.sh"