Switch to polybar
This commit is contained in:
parent
85ef052463
commit
a21a952f3e
8
.bashrc
8
.bashrc
@ -21,8 +21,6 @@ alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
alias c='clear'
|
||||
alias w='~/dotfiles/scripts/updatewal.sh'
|
||||
alias setkb='setxkbmap de;echo "Keyboard set back to de."'
|
||||
alias instp='sudo pacman -S'
|
||||
alias insty='yay -S'
|
||||
|
||||
# APPLICATIONS
|
||||
alias ls='exa -al'
|
||||
@ -53,8 +51,8 @@ alias chat='python ~/mychatgpt/mychatgpt.py'
|
||||
alias ascii='~/dotfiles/scripts/figlet.sh'
|
||||
|
||||
# VIRTUAL MACHINE
|
||||
# alias vm='~/dotfiles/scripts/launchvm.sh'
|
||||
alias vm='~/dotfiles/scripts/looking-glass.sh'
|
||||
alias vm='~/dotfiles/scripts/launchvm.sh'
|
||||
alias lc='~/dotfiles/scripts/looking-glass.sh'
|
||||
alias vmstart='virsh --connect qemu:///system start win11'
|
||||
alias vmstop='virsh --connect qemu:///system destroy win11'
|
||||
|
||||
@ -63,8 +61,6 @@ alias confq='vim ~/dotfiles/qtile/config.py'
|
||||
alias confp='vim ~/dotfiles/picom/picom.conf'
|
||||
alias confb='vim ~/dotfiles/.bashrc'
|
||||
|
||||
# IMAGE MANIPULATION
|
||||
|
||||
# EDIT NOTES
|
||||
alias notes='vim ~/notes.txt'
|
||||
|
||||
|
187
polybar/config.ini
Normal file
187
polybar/config.ini
Normal file
@ -0,0 +1,187 @@
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
background = #aa000000
|
||||
foreground = ${xrdb:color7:#222}
|
||||
foreground-alt = ${xrdb:color1:#000}
|
||||
primary = ${xrdb:color1:#222}
|
||||
secondary = ${xrdb:color2:#222}
|
||||
alert = ${xrdb:color3:#222}
|
||||
|
||||
;background = #282A2E
|
||||
;background-alt = #373B41
|
||||
;foreground = #C5C8C6
|
||||
;primary = #F0C674
|
||||
;secondary = #8ABEB7
|
||||
;alert = #A54242
|
||||
;disabled = #707880
|
||||
|
||||
[bar/mybar]
|
||||
width = 100%
|
||||
height = 20pt
|
||||
radius = 0
|
||||
|
||||
;dpi = 96
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
;line-size = 3pt
|
||||
;border-size = 4pt
|
||||
border-size = 0pt
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
module-margin = 2
|
||||
|
||||
separator = |
|
||||
separator-foreground = ${colors.disabled}
|
||||
|
||||
font-0 = "Fira Sans SemiBold:size=11;1"
|
||||
; font-0 = monospace;2
|
||||
|
||||
modules-left = xworkspaces
|
||||
modules-center = xwindow
|
||||
modules-right = filesystem pulseaudio xkeyboard memory cpu date
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
; tray-position = right
|
||||
|
||||
; wm-restack = generic
|
||||
; wm-restack = bspwm
|
||||
; wm-restack = i3
|
||||
|
||||
; override-redirect = true
|
||||
|
||||
[module/xworkspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
label-active = %name%
|
||||
;label-active-background = ${colors.background-alt}
|
||||
label-active-background = #FFFFFF
|
||||
;label-active-underline= ${colors.primary}
|
||||
;label-active-underline = background
|
||||
label-active-padding = 2
|
||||
label-active-foreground = #FF000000
|
||||
|
||||
label-occupied = %name%
|
||||
label-occupied-padding = 2
|
||||
label-occupied-foreground = #FFFFFF
|
||||
label-occupied-background=#66000000
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %name%
|
||||
label-empty-foreground =#FFFFFF
|
||||
label-empty-background=#99000000
|
||||
label-empty-padding = 2
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:60:...%
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
||||
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume-prefix = "VOL "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-foreground = ${colors.primary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-foreground = ${colors.background}
|
||||
label-indicator-background = ${colors.secondary}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = "RAM "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = "CPU "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||
|
||||
[module/wlan]
|
||||
inherit = network-base
|
||||
interface-type = wireless
|
||||
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = %H:%M
|
||||
date-alt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
label = %date%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
|
||||
; vim:ft=dosini
|
@ -5,5 +5,6 @@ setxkbmap de
|
||||
picom &
|
||||
xfce4-power-manager &
|
||||
dunst &
|
||||
polybar -r mybar &
|
||||
~/dotfiles/scripts/updatewal.sh
|
||||
spotifyd
|
||||
|
@ -87,7 +87,7 @@ keys = [
|
||||
Key([mod], "Right", lazy.layout.right(), desc="Move focus to right"),
|
||||
Key([mod], "Down", lazy.layout.down(), desc="Move focus down"),
|
||||
Key([mod], "Up", lazy.layout.up(), desc="Move focus up"),
|
||||
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
|
||||
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window around"),
|
||||
|
||||
# Move
|
||||
Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
||||
@ -100,12 +100,12 @@ keys = [
|
||||
Key([mod, "shift"], "l", lazy.layout.swap_right()),
|
||||
|
||||
# Size
|
||||
Key([mod], "h", lazy.layout.shrink(), lazy.layout.decrease_nmaster(), desc='Shrink window (MonadTall)'),
|
||||
Key([mod], "l", lazy.layout.grow(), lazy.layout.increase_nmaster(), desc='Expand window (MonadTall)'),
|
||||
Key([mod, "control"], "Left", lazy.layout.grow_left(), desc="Grow window to the left"),
|
||||
Key([mod, "control"], "Right", lazy.layout.grow_right(), desc="Grow window to the right"),
|
||||
Key([mod, "control"], "Down", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
Key([mod, "control"], "Up", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
# Key([mod], "h", lazy.layout.shrink(), lazy.layout.decrease_nmaster(), desc='Shrink window (MonadTall)'),
|
||||
# Key([mod], "l", lazy.layout.grow(), lazy.layout.increase_nmaster(), desc='Expand window (MonadTall)'),
|
||||
Key([mod, "control"], "Left", lazy.layout.shrink(), desc="Grow window to the left"),
|
||||
Key([mod, "control"], "Right", lazy.layout.grow(), desc="Grow window to the right"),
|
||||
# Key([mod, "control"], "Down", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
# Key([mod, "control"], "Up", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
||||
|
||||
# Floating
|
||||
@ -127,7 +127,7 @@ keys = [
|
||||
|
||||
# Apps
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||
Key([mod], "r", lazy.spawn("rofi -show drun -icon-theme 'Papirus' -show-icons"), desc="Launch Rofi"),
|
||||
Key([mod, "control"], "Return", lazy.spawn("rofi -show drun -icon-theme 'Papirus' -show-icons"), desc="Launch Rofi"),
|
||||
Key([mod], "b", lazy.spawn(browser), desc="Launch Chromium"),
|
||||
Key([mod], "v", lazy.spawn("/home/raabe/dotfiles/scripts/looking-glass.sh"), desc="Start Looking Glass Client"),
|
||||
Key([mod, "shift"], "w", lazy.spawn("/home/raabe/dotfiles/scripts/updatewal.sh"), desc="Update Theme and Wallpaper"),
|
||||
@ -136,8 +136,7 @@ keys = [
|
||||
Key([mod, "control"], "t", lazy.spawn("/home/raabe/dotfiles/scripts/templates.sh"), desc="Select Tempate and copy to clipboard"),
|
||||
|
||||
# Scratchpads
|
||||
Key([mod, "shift"], "t", lazy.group["terminal"].dropdown_toggle("term")),
|
||||
Key([mod, "shift"], "r", lazy.group["calculator"].dropdown_toggle("calc"))
|
||||
# Key([mod, "control"], "c", lazy.group["calculator"].dropdown_toggle("calc"))
|
||||
]
|
||||
|
||||
# --------------------------------------------------------
|
||||
@ -155,8 +154,7 @@ groups = [
|
||||
# Scratchpads
|
||||
# --------------------------------------------------------
|
||||
|
||||
ScratchPad("terminal",[DropDown("term", terminal, x=0.05, y=0.02, width=0.90, height=0.6, on_focus_lost_hide=False)]),
|
||||
ScratchPad("calculator",[DropDown("calc", "qalculate-gtk", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False )])
|
||||
# ScratchPad("calculator",[DropDown("calc", "qalculate-gtk", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False )])
|
||||
]
|
||||
|
||||
dgroups_key_binder = simple_key_binder(mod)
|
||||
@ -300,7 +298,7 @@ if (platform == 3):
|
||||
# --------------------------------------------------------
|
||||
# Screens
|
||||
# --------------------------------------------------------
|
||||
|
||||
'''
|
||||
screens = [
|
||||
Screen(
|
||||
top=bar.Bar(
|
||||
@ -312,13 +310,12 @@ screens = [
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
'''
|
||||
# --------------------------------------------------------
|
||||
# Screens Gap for PolyBar
|
||||
# --------------------------------------------------------
|
||||
|
||||
# screens = [Screen(top=bar.Gap(size=35))]
|
||||
screens = [Screen(top=bar.Gap(size=30))]
|
||||
|
||||
# --------------------------------------------------------
|
||||
# Drag floating layouts.
|
||||
|
Loading…
Reference in New Issue
Block a user