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],"t", lazy.spawn(term), desc="Launch terminal"),
Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"), Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"),
Key([mod],"e", lazy.spawn("pcmanfm"),desc="Launch pcmanfm"), 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 # Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
@@ -79,7 +79,11 @@ keys = [
# qtile hotkeys # qtile hotkeys
Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"), Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown 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 # Media hotkeys
Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')), Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')),
@@ -230,7 +234,7 @@ def powerline_arrow(direction, color1, color2,size):
#endregion #endregion
#region Left_widgets #region Left_widgets
def Left_widgets(size,fontsize): def Left_widgets(size,fontsize,prompt=False):
return [ return [
widget.CurrentLayoutIcon(), widget.CurrentLayoutIcon(),
*powerline_arrow('r',base_color,blue_color,size), *powerline_arrow('r',base_color,blue_color,size),
@@ -254,7 +258,6 @@ def Left_widgets(size,fontsize):
urgent_alert_method='block', urgent_alert_method='block',
urgent_border = red_color, urgent_border = red_color,
), ),
widget.Prompt(fontsize=fontsize),
widget.WindowName(fontsize=fontsize-2), widget.WindowName(fontsize=fontsize-2),
] ]
#endregion #endregion
@@ -413,7 +416,7 @@ secondary_bar_height=24
secondary_bar_fontsize=18 secondary_bar_fontsize=18
main_bar = bar.Bar([ 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), widget.Systray(fontsize=main_bar_fontsize),
*vloume_widget(base_color,blue_color,main_bar_height,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), *System_widgets(blue_color,blue_color,main_bar_height,main_bar_fontsize),
+121 -151
View File
@@ -1,152 +1,122 @@
configuration { /*Dracula theme based on the Purple official rofi theme*/
/* modi: "window,run,ssh";*/
/* width: 50;*/ * {
/* lines: 15;*/ font: "Ubuntu Mono 14";
/* columns: 1;*/ foreground: #f8f8f2;
/* font: "mono 12";*/ background-color: #282a36;
/* bw: 1;*/ active-background: #6272a4;
/* location: 0;*/ urgent-background: #ff5555;
/* padding: 5;*/ selected-background: @active-background;
/* yoffset: 0;*/ selected-urgent-background: @urgent-background;
/* xoffset: 0;*/ selected-active-background: @active-background;
/* fixed-num-lines: true;*/ separatorcolor: @active-background;
/* show-icons: false;*/ bordercolor: @active-background;
/* terminal: "rofi-sensible-terminal";*/ }
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/ #window {
/* run-command: "{cmd}";*/ background-color: @background;
/* run-list-command: "";*/ border: 1;
/* run-shell-command: "{terminal} -e {cmd}";*/ border-radius: 6;
/* window-command: "wmctrl -i -R {window}";*/ border-color: @bordercolor;
/* window-match-fields: "all";*/ padding: 5;
/* icon-theme: ;*/ }
/* drun-match-fields: "name,generic,exec,categories,keywords";*/ #mainbox {
/* drun-categories: ;*/ border: 0;
/* drun-show-actions: false;*/ padding: 0;
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/ }
/* drun-url-launcher: "xdg-open";*/ #message {
/* disable-history: false;*/ border: 1px dash 0px 0px ;
/* ignored-prefixes: "";*/ border-color: @separatorcolor;
/* sort: false;*/ padding: 1px ;
/* sorting-method: "normal";*/ }
/* case-sensitive: false;*/ #textbox {
/* cycle: true;*/ text-color: @foreground;
/* sidebar-mode: false;*/ }
/* eh: 1;*/ #listview {
/* auto-select: false;*/ fixed-height: 0;
/* parse-hosts: false;*/ border: 2px dash 0px 0px ;
/* parse-known-hosts: true;*/ border-color: @bordercolor;
/* combi-modi: "window,run";*/ spacing: 2px ;
/* matching: "normal";*/ scrollbar: false;
/* tokenize: true;*/ padding: 2px 0px 0px ;
/* m: "-5";*/ }
/* line-margin: 2;*/ #element {
/* line-padding: 1;*/ border: 0;
/* filter: ;*/ padding: 1px ;
/* separator-style: "dash";*/ }
/* hide-scrollbar: false;*/ #element.normal.normal {
/* fullscreen: false;*/ background-color: @background;
/* fake-transparency: false;*/ text-color: @foreground;
/* dpi: -1;*/ }
/* threads: 0;*/ #element.normal.urgent {
/* scrollbar-width: 8;*/ background-color: @urgent-background;
/* scroll-method: 0;*/ text-color: @urgent-foreground;
/* fake-background: "screenshot";*/ }
/* window-format: "{w} {c} {t}";*/ #element.normal.active {
/* click-to-exit: true;*/ background-color: @active-background;
/* show-match: true;*/ text-color: @foreground;
/* theme: ;*/ }
/* color-normal: ;*/ #element.selected.normal {
/* color-urgent: ;*/ background-color: @selected-background;
/* color-active: ;*/ text-color: @foreground;
/* color-window: ;*/ }
/* max-history-size: 25;*/ #element.selected.urgent {
/* combi-hide-mode-prefix: false;*/ background-color: @selected-urgent-background;
/* matching-negate-char: '-' /* unsupported */;*/ text-color: @foreground;
/* cache-dir: ;*/ }
/* window-thumbnail: false;*/ #element.selected.active {
/* drun-use-desktop-cache: false;*/ background-color: @selected-active-background;
/* drun-reload-desktop-cache: false;*/ text-color: @foreground;
/* normalize-match: false;*/ }
/* pid: "/run/user/1000/rofi.pid";*/ #element.alternate.normal {
/* display-window: ;*/ background-color: @background;
/* display-windowcd: ;*/ text-color: @foreground;
/* display-run: ;*/ }
/* display-ssh: ;*/ #element.alternate.urgent {
/* display-drun: ;*/ background-color: @urgent-background;
/* display-combi: ;*/ text-color: @foreground;
/* display-keys: ;*/ }
/* display-file-browser: ;*/ #element.alternate.active {
/* kb-primary-paste: "Control+V,Shift+Insert";*/ background-color: @active-background;
/* kb-secondary-paste: "Control+v,Insert";*/ text-color: @foreground;
/* kb-clear-line: "Control+w";*/ }
/* kb-move-front: "Control+a";*/ #scrollbar {
/* kb-move-end: "Control+e";*/ width: 2px ;
/* kb-move-word-back: "Alt+b,Control+Left";*/ border: 0;
/* kb-move-word-forward: "Alt+f,Control+Right";*/ handle-width: 8px ;
/* kb-move-char-back: "Left,Control+b";*/ padding: 0;
/* kb-move-char-forward: "Right,Control+f";*/ }
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/ #sidebar {
/* kb-remove-word-forward: "Control+Alt+d";*/ border: 2px dash 0px 0px ;
/* kb-remove-char-forward: "Delete,Control+d";*/ border-color: @separatorcolor;
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/ }
/* kb-remove-to-eol: "Control+k";*/ #button.selected {
/* kb-remove-to-sol: "Control+u";*/ background-color: @selected-background;
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/ text-color: @foreground;
/* kb-accept-custom: "Control+Return";*/ }
/* kb-accept-alt: "Shift+Return";*/ #inputbar {
/* kb-delete-entry: "Shift+Delete";*/ spacing: 0;
/* kb-mode-next: "Shift+Right,Control+Tab";*/ text-color: @foreground;
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/ padding: 1px ;
/* kb-row-left: "Control+Page_Up";*/ }
/* kb-row-right: "Control+Page_Down";*/ #case-indicator {
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/ spacing: 0;
/* kb-row-down: "Down,Control+n";*/ text-color: @foreground;
/* kb-row-tab: "Tab";*/ }
/* kb-page-prev: "Page_Up";*/ #entry {
/* kb-page-next: "Page_Down";*/ spacing: 0;
/* kb-row-first: "Home,KP_Home";*/ text-color: @foreground;
/* kb-row-last: "End,KP_End";*/ }
/* kb-row-select: "Control+space";*/ #prompt {
/* kb-screenshot: "Alt+S";*/ spacing: 0;
/* kb-ellipsize: "Alt+period";*/ text-color: @foreground;
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/ }
/* kb-toggle-sort: "Alt+grave";*/ #inputbar {
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/ children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
/* kb-custom-1: "Alt+1";*/ }
/* kb-custom-2: "Alt+2";*/ #textbox-prompt-colon {
/* kb-custom-3: "Alt+3";*/ expand: false;
/* kb-custom-4: "Alt+4";*/ str: ":";
/* kb-custom-5: "Alt+5";*/ margin: 0px 0.3em 0em 0em ;
/* kb-custom-6: "Alt+6";*/ text-color: @foreground;
/* kb-custom-7: "Alt+7";*/
/* kb-custom-8: "Alt+8";*/
/* kb-custom-9: "Alt+9";*/
/* kb-custom-10: "Alt+0";*/
/* kb-custom-11: "Alt+exclam";*/
/* kb-custom-12: "Alt+at";*/
/* kb-custom-13: "Alt+numbersign";*/
/* kb-custom-14: "Alt+dollar";*/
/* kb-custom-15: "Alt+percent";*/
/* kb-custom-16: "Alt+dead_circumflex";*/
/* kb-custom-17: "Alt+ampersand";*/
/* kb-custom-18: "Alt+asterisk";*/
/* kb-custom-19: "Alt+parenleft";*/
/* kb-select-1: "Super+1";*/
/* kb-select-2: "Super+2";*/
/* kb-select-3: "Super+3";*/
/* kb-select-4: "Super+4";*/
/* kb-select-5: "Super+5";*/
/* kb-select-6: "Super+6";*/
/* kb-select-7: "Super+7";*/
/* kb-select-8: "Super+8";*/
/* kb-select-9: "Super+9";*/
/* kb-select-10: "Super+0";*/
/* ml-row-left: "ScrollLeft";*/
/* ml-row-right: "ScrollRight";*/
/* ml-row-up: "ScrollUp";*/
/* ml-row-down: "ScrollDown";*/
/* me-select-entry: "MousePrimary";*/
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
} }