Updates Polybar
This commit is contained in:
parent
80c0f7c22e
commit
172809495b
|
@ -187,10 +187,10 @@ shadow-radius = 12;
|
|||
shadow-opacity = .75
|
||||
|
||||
# The left offset for shadows, in pixels. (defaults to -15)
|
||||
shadow-offset-x = -7;
|
||||
shadow-offset-x = -15;
|
||||
|
||||
# The top offset for shadows, in pixels. (defaults to -15)
|
||||
shadow-offset-y = -7;
|
||||
shadow-offset-y = -15;
|
||||
|
||||
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
shadow-red = 0
|
||||
|
@ -263,7 +263,7 @@ inactive-dim-fixed = 1.0
|
|||
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||
#
|
||||
opacity-rule = [
|
||||
"90:class_g = 'Alacritty' && focused",
|
||||
"90:class_g = 'Alacritty' && focused",
|
||||
"70:class_g = 'Alacritty' && !focused",
|
||||
"70:class_g = 'Rofi'"
|
||||
]
|
||||
|
@ -282,7 +282,7 @@ rounded-corners-exclude = [
|
|||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
# "class_g = 'Dunst'",
|
||||
"class_g = 'Rofi'",
|
||||
# "class_g = 'Rofi'",
|
||||
"QTILE_INTERNAL:32c = 1"
|
||||
];
|
||||
|
||||
|
|
|
@ -29,11 +29,11 @@ padding-right = 1
|
|||
module-margin = 2
|
||||
separator = ""
|
||||
separator-foreground = ${colors.disabled}
|
||||
font-0 = "Fira Sans SemiBold:size=11;1"
|
||||
font-0 = "Fira Sans SemiBold:size=11;2"
|
||||
font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2"
|
||||
modules-left = mymenu xworkspaces
|
||||
modules-left = xworkspaces mymenu
|
||||
modules-center = xwindow
|
||||
modules-right = filesystem pulseaudio xkeyboard memory cpu date myexit
|
||||
modules-right = xkeyboard mysystem filesystem pulseaudio memory cpu date myexit
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
enable-ipc = true
|
||||
|
@ -42,13 +42,13 @@ enable-ipc = true
|
|||
[module/mymenu]
|
||||
type = custom/text
|
||||
content-foreground = ${colors.primary}
|
||||
content = " "
|
||||
click-left = "rofi -show drun -icon-theme 'Papirus' -show-icons"
|
||||
content = ""
|
||||
click-left = "~/dotfiles/scripts/applauncher.sh"
|
||||
|
||||
[module/myexit]
|
||||
type = custom/text
|
||||
content-foreground = ${colors.primary}
|
||||
content = " "
|
||||
content = " "
|
||||
click-left = "~/dotfiles/scripts/powermenu.sh"
|
||||
|
||||
[module/xworkspaces]
|
||||
|
@ -78,6 +78,12 @@ format-prefix = " "
|
|||
format-prefix-foreground = ${colors.primary}
|
||||
format-foreground = #FFFFFF
|
||||
|
||||
[module/mysystem]
|
||||
type = custom/text
|
||||
content-foreground = ${colors.primary}
|
||||
content = " "
|
||||
click-left = "alacritty -e htop"
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
@ -90,7 +96,7 @@ label-unmounted-foreground = #FFFFFF
|
|||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
format-volume-prefix = "VOL "
|
||||
format-volume-prefix = " "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <label-volume>
|
||||
format-volume-foreground = #FFFFFF
|
||||
|
@ -111,7 +117,7 @@ label-indicator-background = ${colors.secondary}
|
|||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = "RAM "
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
format-foreground = #FFFFFF
|
||||
label = %percentage_used:2%%
|
||||
|
@ -119,10 +125,11 @@ label = %percentage_used:2%%
|
|||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = "CPU "
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
format-foreground = #FFFFFF
|
||||
label = %percentage:2%%
|
||||
click = "htop"
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
|
|
7
polybar/launch.sh
Executable file
7
polybar/launch.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
polybar-msg cmd quit
|
||||
# killall -q polybar
|
||||
polybar -r mybar
|
||||
|
||||
echo "Bars launched..."
|
|
@ -5,6 +5,6 @@ setxkbmap de
|
|||
picom &
|
||||
xfce4-power-manager &
|
||||
dunst &
|
||||
polybar -r mybar &
|
||||
~/dotfiles/polybar/launch.sh &
|
||||
~/dotfiles/scripts/updatewal.sh
|
||||
spotifyd
|
||||
|
|
|
@ -133,7 +133,7 @@ keys = [
|
|||
|
||||
# Apps
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||
Key([mod, "control"], "Return", lazy.spawn("rofi -show drun -icon-theme 'Papirus' -show-icons"), desc="Launch Rofi"),
|
||||
Key([mod, "control"], "Return", lazy.spawn(home + "/dotfiles/scripts/applauncher.sh"), desc="Launch Rofi"),
|
||||
Key([mod], "b", lazy.spawn(browser), desc="Launch Browser"),
|
||||
Key([mod, "control"], "b", lazy.spawn(home + "/dotfiles/scripts/bravebookmarks.sh"), desc="Rofi Brave Bookmarks"),
|
||||
Key([mod], "v", lazy.spawn(home + "/dotfiles/scripts/looking-glass.sh"), desc="Start Looking Glass Client"),
|
||||
|
|
|
@ -10,12 +10,11 @@
|
|||
*/
|
||||
|
||||
configuration {
|
||||
display-drun: "Applications:";
|
||||
display-window: "Windows:";
|
||||
display-drun: "Applications";
|
||||
display-window: "Windows";
|
||||
drun-display-format: "{name}";
|
||||
font: "Fira Sans 11";
|
||||
font: "Fira Sans SemiBold 11";
|
||||
modi: "window,run,drun";
|
||||
lines: 10;
|
||||
}
|
||||
|
||||
/* Dark theme. */
|
||||
|
@ -25,9 +24,12 @@ configuration {
|
|||
width:700px;
|
||||
}
|
||||
|
||||
#window {
|
||||
border:2px;
|
||||
border-color:@foreground;
|
||||
element {
|
||||
padding:6;
|
||||
}
|
||||
|
||||
element-text selected {
|
||||
text-color:@background;
|
||||
}
|
||||
|
||||
/* vim: ft=sass
|
||||
|
|
12
scripts/applauncher.sh
Executable file
12
scripts/applauncher.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# _ _ _
|
||||
# / \ _ __ _ __ | | __ _ _ _ _ __ ___| |__ ___ _ __
|
||||
# / _ \ | '_ \| '_ \ | | / _` | | | | '_ \ / __| '_ \ / _ \ '__|
|
||||
# / ___ \| |_) | |_) | | |__| (_| | |_| | | | | (__| | | | __/ |
|
||||
# /_/ \_\ .__/| .__/ |_____\__,_|\__,_|_| |_|\___|_| |_|\___|_|
|
||||
# |_| |_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
rofi -show drun -icon-theme "Papirus" -show-icons -l 10
|
|
@ -18,7 +18,7 @@ options="$option1\n"
|
|||
options="$options$option2\n"
|
||||
options="$options$option3\n$option4"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -lines 4 -width 30 -p "Powermenu")
|
||||
choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "Powermenu")
|
||||
|
||||
case $choice in
|
||||
$option1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user