summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-30 02:15:23 +0200
committerThanos Apollo <[email protected]>2023-10-30 02:15:23 +0200
commita8d379277957246697b488a44ac1982228b6b8a9 (patch)
tree73677c4fad14bc7a673213e02d9e98aa85e21b00
parent42454d2b69befe9b167baa22a3428464fc74ac1a (diff)
qtile: Update widgets & sound control
-rw-r--r--.config/qtile/config.py44
1 files changed, 10 insertions, 34 deletions
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"]
-
-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%+")
),
]