diff --git a/files/.config/compton/compton.conf b/files/.config/compton.conf similarity index 99% rename from files/.config/compton/compton.conf rename to files/.config/compton.conf index 9e115c0..730d33b 100644 --- a/files/.config/compton/compton.conf +++ b/files/.config/compton.conf @@ -136,7 +136,7 @@ blur-background-exclude = [ opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", - "90:class_g = 'UXTerm' && _NET_WM_STATE@:32a != '_NET_WM_STATE_HIDDEN' && _NET_WM_STATE@:32a != '_NET_WM_STATE_FULLSCREEN'" + "85:class_g = 'UXTerm' && _NET_WM_STATE@:32a != '_NET_WM_STATE_HIDDEN' && _NET_WM_STATE@:32a != '_NET_WM_STATE_FULLSCREEN'" ] ################################# diff --git a/files/.config/i3/config b/files/.config/i3/config index 55365be..35d5807 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -226,7 +226,9 @@ mode "resize" { bindsym $mod+r mode "resize" -exec --no-startup-id compton --config ~/.config/compton/compton.conf -exec --no-startup-id polybar top +# reach systemd target +exec --no-startup-id systemctl --user import-environment +exec --no-startup-id systemctl --user start user-graphical-login.target + exec --no-startup-id /bin/bash ~/.config/i3/startup.bash diff --git a/files/.config/mpv/mpv.conf b/files/.config/mpv/mpv.conf index 9a197a1..e882bac 100644 --- a/files/.config/mpv/mpv.conf +++ b/files/.config/mpv/mpv.conf @@ -1,4 +1,5 @@ profile=opengl-hq +video-sync=display-resample display-fps=60 scale=ewa_lanczossharp diff --git a/files/.config/systemd/user/compton.service b/files/.config/systemd/user/compton.service new file mode 100644 index 0000000..db7bb5c --- /dev/null +++ b/files/.config/systemd/user/compton.service @@ -0,0 +1,11 @@ +[Unit] +Description=A compositor for X11 +Requires=user-graphical-login.target +After=user-graphical-login.target + +[Service] +ExecStart=/usr/bin/compton +Restart=always + +[Install] +WantedBy=user-graphical-login.target diff --git a/files/.config/systemd/user/ivshmem.service b/files/.config/systemd/user/ivshmem.service new file mode 100644 index 0000000..38c5447 --- /dev/null +++ b/files/.config/systemd/user/ivshmem.service @@ -0,0 +1,10 @@ +[Unit] +Description=IVSHMEM server for looking-glass +After=user-graphical-login.target + +[Service] +ExecStart=/usr/bin/ivshmem-server -F -p /tmp/ivshmem.pid -S /tmp/ivshmem_socket -l 16M -n 8 +Restart=always + +[Install] +WantedBy=user-graphical-login.target diff --git a/files/.config/systemd/user/polybar.service b/files/.config/systemd/user/polybar.service new file mode 100644 index 0000000..628d617 --- /dev/null +++ b/files/.config/systemd/user/polybar.service @@ -0,0 +1,11 @@ +[Unit] +Description=A fast and easy-to-use tool status bar +Requires=user-graphical-login.target +After=user-graphical-login.target + +[Service] +ExecStart=/usr/bin/polybar top +Restart=always + +[Install] +WantedBy=user-graphical-login.target diff --git a/files/.config/systemd/user/redshift.service b/files/.config/systemd/user/redshift.service new file mode 100644 index 0000000..621040c --- /dev/null +++ b/files/.config/systemd/user/redshift.service @@ -0,0 +1,12 @@ +[Unit] +Description=Redshift display colour temperature adjustment +Documentation=http://jonls.dk/redshift/ +Requires=user-graphical-login.target +After=user-graphical-login.target + +[Service] +ExecStart=/usr/bin/redshift +Restart=always + +[Install] +WantedBy=user-graphical-login.target diff --git a/files/.config/systemd/user/user-graphical-login.target b/files/.config/systemd/user/user-graphical-login.target new file mode 100644 index 0000000..8884b91 --- /dev/null +++ b/files/.config/systemd/user/user-graphical-login.target @@ -0,0 +1,4 @@ +[Unit] +Description=User Graphical Login +Requires=default.target +After=default.target diff --git a/files/.config/systemd/user/wallpaper.service b/files/.config/systemd/user/wallpaper.service new file mode 100644 index 0000000..d98e1cb --- /dev/null +++ b/files/.config/systemd/user/wallpaper.service @@ -0,0 +1,11 @@ +[Unit] +Description=Animated wallpaper +Requires=user-graphical-login.target +After=user-graphical-login.target + +[Service] +ExecStart=/bin/bash -c '"$HOME/.local/bin/wallpaper"' +Restart=always + +[Install] +WantedBy=user-graphical-login.target diff --git a/files/.local/bin/mpv-bg b/files/.local/bin/mpv-bg new file mode 100755 index 0000000..5823270 --- /dev/null +++ b/files/.local/bin/mpv-bg @@ -0,0 +1,2 @@ +#!/bin/bash +exec xwinwrap -ov -fs -- mpv --no-osc --wid WID $@ diff --git a/files/.local/bin/wallpaper b/files/.local/bin/wallpaper new file mode 100755 index 0000000..740a3d3 --- /dev/null +++ b/files/.local/bin/wallpaper @@ -0,0 +1,4 @@ +#!/bin/bash +if ! acpi --ac-adapter | grep -q 'off-line'; then + exec $HOME/.local/bin/mpv-bg --really-quiet --no-config --loop --panscan=1.0 --video-pan-y=-0.1 --scale=oversample "$HOME/Pictures/wallpaper.gif" +fi diff --git a/files/.xinitrc b/files/.xinitrc index 0f2f422..ae2a40d 100644 --- a/files/.xinitrc +++ b/files/.xinitrc @@ -1,3 +1,2 @@ [ -f ~/.xprofile ] && source ~/.xprofile exec i3 -