added rofi

This commit is contained in:
paul-loedige
2020-12-12 22:20:33 +01:00
parent 6790a16cad
commit 493940aa5a
2 changed files with 129 additions and 156 deletions
+8 -5
View File
@@ -70,7 +70,7 @@ keys = [
Key([mod],"t", lazy.spawn(term), desc="Launch terminal"),
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("code"),desc="Launch visual studio code"),
# Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
@@ -79,7 +79,11 @@ keys = [
# qtile hotkeys
Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"),
Key([mod], "r", lazy.spawncmd(),desc="Spawn a command using a prompt widget"),
#rofi
Key([mod],'Return',lazy.spawn("rofi -show drun -show-icons -modi drun,calc,ssh"),desc="launch rofi (drun)"),
Key([mod],'p',lazy.spawn("bwmenu --auto-lock -1"),desc="launch bwmenu"),
Key([mod],'c',lazy.spawn("rofi -show calc -show-icons -modi drun,calc,ssh"),desc="launch rofi (calc)"),
# Media hotkeys
Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')),
@@ -230,7 +234,7 @@ def powerline_arrow(direction, color1, color2,size):
#endregion
#region Left_widgets
def Left_widgets(size,fontsize):
def Left_widgets(size,fontsize,prompt=False):
return [
widget.CurrentLayoutIcon(),
*powerline_arrow('r',base_color,blue_color,size),
@@ -254,7 +258,6 @@ def Left_widgets(size,fontsize):
urgent_alert_method='block',
urgent_border = red_color,
),
widget.Prompt(fontsize=fontsize),
widget.WindowName(fontsize=fontsize-2),
]
#endregion
@@ -413,7 +416,7 @@ secondary_bar_height=24
secondary_bar_fontsize=18
main_bar = bar.Bar([
*Left_widgets(main_bar_height,main_bar_fontsize),
*Left_widgets(main_bar_height,main_bar_fontsize,True),
widget.Systray(fontsize=main_bar_fontsize),
*vloume_widget(base_color,blue_color,main_bar_height,main_bar_fontsize),
*System_widgets(blue_color,blue_color,main_bar_height,main_bar_fontsize),