diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index eb4ee24..f3b567a 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -74,6 +74,7 @@ keys = [ Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"), Key([mod],"e", lazy.spawn("pcmanfm"),desc="Launch pcmanfm"), Key([mod],"c", lazy.spawn("code"),desc="Launch visual studio code"), + Key([mod],"v", lazy.spawn(term + " -e vim"),desc="Launch Vim"), Key([mod, "shift"],"s", lazy.spawn('gscreenshot -s -o -f /tmp/screenshots'),desc="take a screenshot"), # Toggle between different layouts as defined below @@ -119,7 +120,6 @@ group_names = [("","Home", 'h',{'layout': 'monadtall'}), ("","Browser", 'f',{'layout': 'monadtall'}), ("","Mail", 'm',{'layout': 'monadtall'}), ("","Music", 's',{'layout': 'monadtall'}), - ("","Chat", 'w',{'layout': 'monadtall'}), ("","Video", 'v',{'layout': 'monadtall'}), ("","Documents", 'l',{'layout': 'monadtall'}), ("","Discord", 'd',{'layout': 'monadtall'}), @@ -127,7 +127,40 @@ group_names = [("","Home", 'h',{'layout': 'monadtall'}), ("","Gaming", 'g',{'layout': 'monadtall'})] groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names] -groups.extend([ScratchPad("scratchpad",[DropDown("term",term,opacity=0.8)])]) + +groups.append( + ScratchPad("scratchpad",[ + DropDown( + "term", + term, + ), + DropDown( + "htop", + term + ' -e htop', + ), + DropDown( + 'sound', + 'pavucontrol' + ), + DropDown( + 'filemanager', + 'pcmanfm', + on_focus_lost_hide=False + ), + DropDown( + 'password manager', + 'keepassxc', + on_focus_lost_hide=False, + ), + DropDown( + 'WhatsApp', + 'whatsapp-for-linux', + height = 0.5, + width = 0.5, + x = .25 + ) + ]) +) for (icon,name,key, kwargs) in group_names: keys.extend([ @@ -141,6 +174,16 @@ for (icon,name,key, kwargs) in group_names: keys.extend([ Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term'), desc="open the dropdown terminal"), + Key(['control','shift'],'Escape',lazy.group['scratchpad'].dropdown_toggle('htop'), + desc="open the dropdown terminal"), + Key(['mod1','control'],'a',lazy.group['scratchpad'].dropdown_toggle('sound'), + desc="open the dropdown pavucontrol"), + Key(['mod1','control'],'e',lazy.group['scratchpad'].dropdown_toggle('filemanager'), + desc="open the dropdown filemanager"), + Key(['mod1','control'],'p',lazy.group['scratchpad'].dropdown_toggle('password manager'), + desc="open the dropdown password manager KeePassXC"), + Key(['mod1','control'],'w',lazy.group['scratchpad'].dropdown_toggle('WhatsApp'), + desc="open the dropdown for WhatsApp"), ]) #endregion @@ -426,7 +469,9 @@ def vloume_widget(prev_color,color,size,fontsize): #endregion #region System_widgets -launch_htop= {'Button1': lambda qtile: qtile.cmd_spawn(term + ' -e htop')} +def launch_htop(qtile): + qtile.cmd_spawn(term + ' -e htop') +launch_htop= {'Button1': launch_htop} def System_widgets(prev_color,last_color,size,fontsize): return [