From 8ff4b7187167e289ba1f8b0558fd4e3484835e64 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 11 Feb 2020 10:43:00 +0100 Subject: [PATCH] Remove old notif mapping, move start progs on venv entry and fix force restart --- config.py | 15 ++------------- qtile-venv-entry | 10 +++++++++- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/config.py b/config.py index 5dd645e..b19d389 100644 --- a/config.py +++ b/config.py @@ -26,7 +26,7 @@ def cmd_run(prompt, sudo=False): def hard_restart(misc): - execl("/opt/qtile/qtile-venv-entry", " ") + execl("/opt/qtile/bin/qtile", " ") keys = [ @@ -93,13 +93,6 @@ keys = [ Key([mod, "mod1"], "v", lazy.spawn(f"{exitvenv} vivaldi")), Key([mod, "mod1"], "d", lazy.spawn(f"{exitvenv} discord")), Key([mod, "mod1"], "t", lazy.spawn(f"{exitvenv} telegram-desktop")), - - - # Notify - Key([mod, "mod1"], "Right", lazy.widget["notify"].next()), - Key([mod, "mod1"], "Left", lazy.widget["notify"].prev()), - Key([mod, "mod1"], "Down", lazy.widget["notify"].clear()), - ] @@ -206,7 +199,6 @@ def main(q): widget.Prompt(), widget.TaskList(txt_floating="🗗", txt_maximized="🗖", txt_minimized="🗕"), widget.Systray(), - #widget.Notify(), widget.CheckUpdates(custom_command="apt list --upgradable", execute="sudo -A apt update", display_format="{updates}", colour_have_updates="ff7300", colour_no_updates="5eff00"), widget.Sep(), widget.CPU(format="{load_percent}%"), @@ -224,9 +216,6 @@ def main(q): 24, ) )) - Popen("/usr/lib/notification-daemon/notification-daemon") - Popen(["nextcloud", "--background"]) - Popen("kdeconnect-indicator") - + wmname = "LG3D" diff --git a/qtile-venv-entry b/qtile-venv-entry index 36e88b4..7dde3d5 100755 --- a/qtile-venv-entry +++ b/qtile-venv-entry @@ -1,13 +1,17 @@ #!/bin/bash - export SUDO_ASKPASS=/usr/bin/ssh-askpass export _JAVA_AWT_WM_NONREPARENTING=1 + picom --vsync --backend glx -b pulseaudio -D +/usr/lib/notification-daemon/notification-daemon & + feh --bg-fill ~/Nextcloud/Images/Furry/Commis/Kat-LUK.J_/poster_etha.png xbrightness 0.5 +xrandr --output DSI-1 --dpi 100 + # Fix touchscreen xinput set-prop "pointer:ELAN22A6:00 04F3:22A6" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1 @@ -25,6 +29,10 @@ xinput set-prop $touchpadid $speedid 5 0 0 0 5 0 0 0 2 xinput set-prop $touchpadid $disablewhiletypingid 0 +nextcloud --background & +kdeconnect-indicator & + + source /opt/qtile/venv/bin/activate python /opt/qtile/bin/qtile $* > /opt/qtile/qtile.log