My Qtile window manager configuration
git clone https://github.com/m-col/qtile-config
Files | Refs | Readme

-rwxr-xr-x startup.sh


      1 #!/usr/bin/env bash
      2 #
      3 # Qtile Wayland startup script
      4 
      5 foot --server &
      6 
      7 # Wallpaper
      8 (
      9     swww init
     10     sleep 1
     11     swww img --filter Nearest --transition-step=1 --transition-fps 60 \
     12 	--transition-duration 12 ~/pictures/Wallpapers/Leuh6wm-slow.gif
     13 ) &
     14 
     15 run_if_new() { ps aux | grep -v grep | grep -q $1 || $@; }
     16 
     17 [[ -z "$QTILE_XEPHYR" ]] && {
     18     # Session setup
     19     systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
     20     dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
     21 
     22     # Services
     23     kanshi  &
     24     wlsunset &
     25     swayidle &
     26     swaync &
     27     mpDris2 &
     28     sway-mpris-idle-inhibit &
     29     playerctld daemon &
     30     nm-applet --indicator &
     31     #kdeconnect-indicator &
     32     darkman run &
     33 
     34     # Startup programs
     35     run_if_new keepassxc &
     36     sleep 2
     37     run_if_new firefox &
     38     run_if_new evolution &
     39 
     40     # Notify me if any systemd services failed
     41     check_systemd &
     42 
     43 # Send all output to Qtile's log
     44 } &>> ~/.local/share/qtile/qtile.log
     45 
     46 
     47 # Clean up
     48 clean() {
     49     pkill -P $$
     50 }
     51 trap clean SIGINT SIGTERM
     52 sleep infinity &
     53 wait $!
     54