1
0
Fork 0

moved everything to user service, animated wallpaper

This commit is contained in:
Massaki Archambault 2018-05-15 10:20:55 -04:00
parent b327fc0b25
commit d73e0ab781
12 changed files with 71 additions and 4 deletions

View File

@ -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'"
]
#################################

View File

@ -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

View File

@ -1,4 +1,5 @@
profile=opengl-hq
video-sync=display-resample
display-fps=60
scale=ewa_lanczossharp

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,4 @@
[Unit]
Description=User Graphical Login
Requires=default.target
After=default.target

View File

@ -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

2
files/.local/bin/mpv-bg Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
exec xwinwrap -ov -fs -- mpv --no-osc --wid WID $@

4
files/.local/bin/wallpaper Executable file
View File

@ -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

View File

@ -1,3 +1,2 @@
[ -f ~/.xprofile ] && source ~/.xprofile
exec i3