From a8d379277957246697b488a44ac1982228b6b8a9 Mon Sep 17 00:00:00 2001
From: Thanos Apollo <public@thanosapollo.com>
Date: Mon, 30 Oct 2023 02:15:23 +0200
Subject: qtile: Update widgets & sound control

---
 .config/qtile/config.py | 44 ++++++++++----------------------------------
 1 file changed, 10 insertions(+), 34 deletions(-)

(limited to '.config/qtile/config.py')

diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index cb27679..9729b8b 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -7,22 +7,6 @@ from libqtile.config import Key
 from libqtile.command import lazy
 from libqtile.config import Click, Drag
 from colors import dracula
-
-
-# autostart_commands = ["picom",
-#                       "feh --bg-scale ~/wallpapers/wtf.jpeg",
-#                       "setxkbmap us -option ctrl:swapcaps"]
-
-@hook.subscribe.startup_once
-def autostart():
-    autostart_script = os.path.expanduser('~/.config/autostart/autostart.sh')
-    subprocess.Popen([autostart_script])
-
-# autostart_path = os.path.expanduser('~/.config/autostart/autostart.sh')
-# subprocess.run([autostart_path])
-
-# for command in autostart_commands:
-#     subprocess.run(command)
     
 
 # Groups and layouts
@@ -97,7 +81,7 @@ def init_widgets_list():
 	    length=7,
 	),
 	widget.Image(
-	    filename="~/.config/qtile/rms.png",
+	    filename="~/.config/qtile/Gentoo2.png",
 	    scale="True",
 	    margin=2,
 	),
@@ -173,8 +157,8 @@ def init_widgets_list():
 	    foreground=dracula['orange'],
 	    font="JetBrains Mono",
 	    margin=10,
-        get_volume_command="pamixer --get-volume-human",
-        volume_app = "pamixer"
+        # get_volume_command="pamixer --get-volume-human",
+        # volume_app = "pamixer"
 	),
 	# widget.Mpris2(
 	#     fontsize= 16,
@@ -236,8 +220,8 @@ def init_widgets_list():
 	    font='JetBrains Mono Bold',
 	    foreground=dracula["cyan"],
 	    background=dracula["bg"],
-	    fontsize=18,
-	    format="%d-%m-%Y | %H:%M"
+	    fontsize=16,
+	    format="%A %d/%m | %H:%M"
 	),
 	widget.Spacer(
 	    length=6
@@ -305,9 +289,9 @@ keys = [
     Key([mod, "shift"], "a",
         lazy.spawn('anki'),
         ),
-    # Key([mod], ",",
-    #     lazy.spawn("emacsclient -e '(thanos/pass-launcher)'"),
-    #     ),
+    Key([mod, "shift"], "m",
+        lazy.spawn("emacsclient -e '(thanos/pass-launcher)'"),
+        ),
     Key([mod], "Tab",
         lazy.spawn("rofi -show drun"),
         ),
@@ -394,18 +378,10 @@ keys = [
         ),
     # Volume controls
     Key([], "XF86AudioLowerVolume",
-        lazy.spawn("pamixer -d 5")
+        lazy.spawn("amixer sset Master 5%-")
         ),
     Key([], "XF86AudioRaiseVolume",
-        lazy.spawn("pamixer -i 5")
-        ),
-    # I use mod+F[key] to change volume in my thinkpad,
-    # as I dislike using "fn" key in laptops
-    Key([mod], "F11",
-        lazy.spawn('amixer sset Master 5%-'),
-        ),
-    Key([mod], "F12",
-        lazy.spawn('amixer sset Master 5%+'),
+        lazy.spawn("amixer sset Master 5%+")
         ),
     ]
 
-- 
cgit v1.2.3