fixed loop misjtake in dropdown menu creation

This commit is contained in:
paul-loedige
2020-12-20 01:24:14 +01:00
parent 2aaf1b4daa
commit 0615c3832d
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de
https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com
https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de
https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de
+4 -2
View File
@@ -93,7 +93,7 @@ keys = [
Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')), Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')),
Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1')), Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1')),
Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute')), Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute')),
Key([],'Pause',lazy.spawn('amixer set Capture toggle')), Key([],'Pause',lazy.spawn('amixer set Capture toggle'), desc="Toggles Microphone"),
] ]
@@ -130,10 +130,12 @@ for (icon,name,key, kwargs) in group_names:
Key(['mod1','control', "shift"], str(key), lazy.window.togroup(icon), Key(['mod1','control', "shift"], str(key), lazy.window.togroup(icon),
desc="move focused window to group {}".format(name)), desc="move focused window to group {}".format(name)),
])
keys.extend([
Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term'), Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term'),
desc="open the dropdown terminal"), desc="open the dropdown terminal"),
]) ])
#endregion #endregion
#region Layouts #region Layouts
+2 -2
View File
@@ -3,7 +3,7 @@ import os
import time import time
hotkey_file='/home/paul/Hotkeys' hotkey_file='/home/paul/Hotkeys'
hotkey_picture='/home/paul/Hotkeys.png' hotkey_picture='/home/paul/Pictures/Wallpapers/Hotkeys.png'
with open(hotkey_file) as file: with open(hotkey_file) as file:
lines = [line.rstrip() for line in file] lines = [line.rstrip() for line in file]
@@ -19,7 +19,7 @@ for line in lines[:len(lines)//2]:
if os.path.isfile(hotkey_picture): if os.path.isfile(hotkey_picture):
os.remove(hotkey_picture) os.remove(hotkey_picture)
fontsize = 19 fontsize = 20
image = Image.new(mode = "RGB", size = (1440,900), color=(43,46,59)) image = Image.new(mode = "RGB", size = (1440,900), color=(43,46,59))
ImageDraw.Draw(image).text((10,10), text1, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',fontsize), fill='#ffffff') ImageDraw.Draw(image).text((10,10), text1, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',fontsize), fill='#ffffff')