mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-06-19 04:06:00 +02:00
Added polybar floating config
This commit is contained in:
@@ -28,7 +28,7 @@ exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
|
||||
exec --no-startup-id "nitrogen --restore"
|
||||
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
|
||||
exec --no-startup-id "light-locker"
|
||||
exec --no-startup-id "xsnow -snowflakes 50 -notrees"
|
||||
exec --no-startup-id "sleep 5; xsnow -snowflakes 50 -notrees"
|
||||
|
||||
# audio
|
||||
#exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh
|
||||
@@ -372,7 +372,7 @@ mode "| Resize " {
|
||||
# i3-gaps
|
||||
|
||||
# Set inner/outer gaps
|
||||
gaps inner 25
|
||||
gaps inner 20
|
||||
gaps outer 5
|
||||
|
||||
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
# Corners #
|
||||
#################################
|
||||
# requires: https://github.com/sdhand/compton
|
||||
#corner-radius = 25.0;
|
||||
corner-radius = 15.0;
|
||||
rounded-corners-exclude = [
|
||||
#"window_type = 'normal'",
|
||||
"window_type = 'normal'",
|
||||
"class_g = 'awesome'",
|
||||
"class_g = 'URxvt'",
|
||||
"class_g = 'XTerm'",
|
||||
"class_g = 'kitty'",
|
||||
"class_g = 'Alacritty'",
|
||||
"class_g = 'Polybar'",
|
||||
#"class_g = 'Polybar'",
|
||||
"class_g = 'code-oss'",
|
||||
"class_g = 'firefox'",
|
||||
"class_g = 'Thunderbird'"
|
||||
@@ -272,7 +272,7 @@ blur: {
|
||||
# requires: https://github.com/ibhagwan/picom
|
||||
method = "kawase";
|
||||
#method = "kernel";
|
||||
strength = 4;
|
||||
strength = 3;
|
||||
# deviation = 1.0;
|
||||
# kernel = "11x11gaussian";
|
||||
background = false;
|
||||
@@ -296,8 +296,8 @@ blur-background-exclude = [
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
"name *= 'overlay'",
|
||||
"class_g *= 'overlay'",
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'"
|
||||
#"window_type = 'dock'",
|
||||
#"window_type = 'desktop'"
|
||||
];
|
||||
|
||||
|
||||
|
||||
+140
-57
@@ -13,18 +13,98 @@
|
||||
screenchange-reload = true
|
||||
|
||||
[colors]
|
||||
background = #af2e3440
|
||||
transparent = #00ffffff
|
||||
background = #ff2e3440
|
||||
border = #af3b4252
|
||||
foreground = #eceff4
|
||||
foreground-alt = #81a1c1
|
||||
|
||||
; Bars
|
||||
|
||||
[bar/floating]
|
||||
;modules-right = disk_short_pc checkupdates ovpn nvpn eth_pc
|
||||
modules-left = sysinfo button_pavucontrol
|
||||
modules-center = clock playerctl_long
|
||||
modules-right = sensors_cpu_pc nvgpu memory
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 60%
|
||||
height = 40px
|
||||
offset-x = 20%
|
||||
offset-y = 8px
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;1
|
||||
enable-ipc = false
|
||||
bottom = true
|
||||
radius = 15.0
|
||||
override-redirect = true
|
||||
tray-position = left
|
||||
tray-padding = 3
|
||||
tray-offset-x=86
|
||||
tray-offset-y = 4px
|
||||
tray-detached = true
|
||||
tray-maxsize = 15
|
||||
tray-scale = 0.8
|
||||
|
||||
[bar/floating_sysinfo]
|
||||
modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 22%
|
||||
height = 40px
|
||||
offset-x = 20%
|
||||
offset-y = 54px
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;1
|
||||
enable-ipc = true
|
||||
bottom = true
|
||||
radius = 15.0
|
||||
override-redirect = true
|
||||
|
||||
[bar/floating_wm]
|
||||
modules-center = i3_dots
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 100%
|
||||
height = 15
|
||||
fixed-center = true
|
||||
background = ${colors.transparent}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 4
|
||||
font-0 = Hack Nerd Font:style=Bold:fontformat=truetype:pixelsize=10;4
|
||||
font-1 = Material Design Icons:pixelsize=8.25:antialias=true;4
|
||||
enable-ipc = true
|
||||
bottom = false
|
||||
radius = 15.0
|
||||
override-redirect = false
|
||||
|
||||
; Bars Yoga3
|
||||
|
||||
[bar/yoga3_primary_landscape]
|
||||
; not used: songname menu-media xbacklightbuttons
|
||||
modules-left = i3touchmenu checkupd ovpn nvpn usbmodem1 usbmodem2 usbmodem3 usbmodem4 eth_yoga3 wlan
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = sensors_cpu_yoga3 memory disk_short_yoga3 battery date
|
||||
modules-right = sensors_cpu_yoga3 memory disk_short_yoga3 batteryclock
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
width = 100%
|
||||
bottom=false
|
||||
@@ -53,7 +133,7 @@ enable-ipc = true
|
||||
; not used: songname menu-media update disk eth
|
||||
modules-left = i3touchmenu xbacklightbuttons ovpn nvpn usbmodem1 usbmodem2 usbmodem3 wlanshort
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = cpu memory temperature batteryshort date
|
||||
modules-right = cpu memory temperature batteryshortclock
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
width = 100%
|
||||
height = 20
|
||||
@@ -82,33 +162,33 @@ enable-ipc = true
|
||||
[bar/pc_primary_landscape]
|
||||
modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc playerctl
|
||||
modules-center = i3
|
||||
modules-right = sensors_cpu_pc nvgpu memory date
|
||||
modules-right = sensors_cpu_pc nvgpu memoryclock
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 100%
|
||||
height = 18
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=11:antialias=true;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;2
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
tray-scale = 1
|
||||
enable-ipc = true
|
||||
|
||||
[bar/pc_vnc_landscape]
|
||||
modules-left = disk_short_pc checkupd ovpn nvpn eth_pc
|
||||
modules-center = i3
|
||||
modules-right = sensors_cpu_pc memory date
|
||||
modules-right = sensors_cpu_pc memoryclock
|
||||
monitor = ${env:MONITOR:VNC-0}
|
||||
width = 100%
|
||||
height = 18
|
||||
@@ -133,24 +213,34 @@ enable-ipc = true
|
||||
|
||||
; Modules
|
||||
|
||||
[module/button_pavucontrol]
|
||||
type = custom/text
|
||||
content = |
|
||||
click-left = "setsid pavucontrol"
|
||||
click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
|
||||
|
||||
; Module Date
|
||||
|
||||
[module/date]
|
||||
[module/clock]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
date =
|
||||
date =
|
||||
date-alt = %d.%m.%Y,
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
label = %date% %time%
|
||||
|
||||
[module/clock_icon]
|
||||
inherit = "module/clock"
|
||||
date =
|
||||
|
||||
; Module Updates
|
||||
|
||||
[module/checkupdates]
|
||||
type = custom/script
|
||||
interval = 60
|
||||
interval = 30
|
||||
format = <label>
|
||||
label-maxlen=500
|
||||
label-maxlen=15
|
||||
label-ellipsis=true
|
||||
exec = "echo $(bash ~/.config/polybar/scripts/update.sh --count-short)"
|
||||
click-left = "setsid alacritty -e bash ~/.config/polybar/scripts/update.sh --list"
|
||||
@@ -278,6 +368,15 @@ format-muted-foreground = ${root.foreground}
|
||||
label-muted = x
|
||||
interval = 1
|
||||
|
||||
[module/sysinfo]
|
||||
type = custom/script
|
||||
interval = 0.5
|
||||
format = <label>
|
||||
label-maxlen = 5
|
||||
exec = ~/.config/polybar/scripts/sysinfo.sh
|
||||
click-left = ~/.config/polybar/scripts/sysinfo.sh --toggle
|
||||
content =
|
||||
|
||||
[module/playerctl]
|
||||
type = custom/script
|
||||
tail = true
|
||||
@@ -288,6 +387,10 @@ click-left = "playerctl play-pause"
|
||||
click-right = "playerctl next"
|
||||
click-middle = "playerctl previous"
|
||||
|
||||
[module/playerctl_long]
|
||||
inherit="module/playerctl"
|
||||
exec = bash ~/.config/polybar/scripts/playerctl.sh 30
|
||||
|
||||
[module/playerctl-buttons]
|
||||
type = custom/menu
|
||||
expand-right = true
|
||||
@@ -327,7 +430,7 @@ label-discharging = bat: %percentage%%
|
||||
|
||||
[module/disk_short_pc]
|
||||
type = custom/script
|
||||
format = | <label>
|
||||
format = <label>
|
||||
interval = 10
|
||||
exec = echo $(df -h / | tail +2 | awk -F ' ' '{print $3 " / " $2 " (" $5 ")"}' | tr -d 'G')
|
||||
|
||||
@@ -335,6 +438,9 @@ click-left = "setsid alacritty -e sh -c 'echo Disk overview... ; echo ; df -h -x
|
||||
click-right = "setsid alacritty -e sh -c 'echo Scanning main disk ; echo ; ncdu --exclude /data / ; echo ; read -p Done!'"
|
||||
click-middle = "setsid alacritty -e sh -c 'echo Scanning full disk... ; echo ; sudo ncdu / ; echo ; read -p Done!'"
|
||||
|
||||
[module/disk_short_pc_spacer]
|
||||
inherit = "module/disk_short_pc"
|
||||
format = | <label>
|
||||
|
||||
[module/disk_short_yoga3]
|
||||
type = custom/script
|
||||
@@ -343,14 +449,6 @@ interval = 10
|
||||
exec = echo $(df -h / | tail +2 | awk -F ' ' '{print $3 " / " $2 " (" $5 ")"}' | tr -d 'G')
|
||||
click-left = "setsid alacritty -e sh -c 'ncdu /'"
|
||||
|
||||
[module/disk]
|
||||
type = internal/fs
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = true
|
||||
spacing = 4
|
||||
label-mounted = | dsk: %used% / %total%
|
||||
|
||||
; Module Backlight
|
||||
|
||||
[module/xbacklight]
|
||||
@@ -375,38 +473,6 @@ menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
wrapping-scroll = true
|
||||
reverse-scroll = true
|
||||
fuzzy-match = false
|
||||
format = <label-state><label-mode>
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 0
|
||||
label-mode-margin = 0
|
||||
label-empty =
|
||||
label-empty-padding = 0
|
||||
label-empty-margin = 0
|
||||
label-focused =%icon%%name%
|
||||
label-focused-underline = #fff
|
||||
label-focused-margin = 1
|
||||
label-focused-padding = 1
|
||||
label-unfocused =%icon%%name%
|
||||
label-unfocused-margin = 0
|
||||
label-unfocused-padding = 0
|
||||
label-visible =%icon%%name%
|
||||
label-visible-underline = #fff
|
||||
label-visible-margin = 0
|
||||
label-visible-padding = 0
|
||||
label-urgent =%icon%%name%
|
||||
label-urgent-padding = 0
|
||||
label-urgent-margin = 0
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
pin-workspaces = true
|
||||
@@ -420,24 +486,41 @@ fuzzy-match = false
|
||||
format = <label-state> <label-mode>
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 1
|
||||
;label-mode-background = ${colors.background}
|
||||
label-focused =%icon%%name%
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
;label-focused-background = ${colors.background}
|
||||
label-focused-underline = #fff
|
||||
label-focused-margin = 2
|
||||
label-unfocused =%icon%%name%
|
||||
label-unfocused-foreground = ${colors.foreground}
|
||||
;label-unfocused-background = ${colors.background}
|
||||
label-unfocused-margin = 1
|
||||
label-visible =%icon%%name%
|
||||
label-visible-underline = #fff
|
||||
label-visible-margin = 1
|
||||
label-urgent =%icon%%name%
|
||||
label-urgent-foreground = ${colors.foreground-alt}
|
||||
;label-urgent-background = ${colors.background}
|
||||
label-urgent-padding = 1
|
||||
|
||||
[module/i3_dots]
|
||||
type = internal/i3
|
||||
ws-icon-default =" "
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
wrapping-scroll = true
|
||||
reverse-scroll = true
|
||||
fuzzy-match = false
|
||||
format =<label-state><label-mode>
|
||||
label-mode = %mode%
|
||||
label-focused =" "
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
label-unfocused =" "
|
||||
label-unfocused-foreground = ${colors.foreground}
|
||||
label-visible =" "
|
||||
label-urgent =" "
|
||||
label-urgent-foreground = ${colors.foreground-alt}
|
||||
|
||||
; Module Menus
|
||||
|
||||
[module/i3touchmenu]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
Script started on 2020-12-27 19:30:46+01:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="104" LINES="16"]
|
||||
|
||||
Script done on 2020-12-27 19:30:46+01:00 [COMMAND_EXIT_CODE="0"]
|
||||
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
exe() { echo "\$ $@" ; "$@" ; }
|
||||
|
||||
# Dependencies:
|
||||
# pacman-contrib, yay for AUR updates
|
||||
|
||||
@@ -10,7 +8,7 @@ CNT_UPDATES="0"
|
||||
UPDATES="nA"
|
||||
|
||||
if [ "$ENA_UPDATES" ]; then
|
||||
UPDATES=$(checkupdates)
|
||||
UPDATES=$(checkupdates 2>/dev/null)
|
||||
CNT_UPDATES=$(echo "$UPDATES" | wc -l)
|
||||
fi
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user