feat: update polybar, bspwm and sxhkd configs for PC and only polybar for Laptop
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
pgrep -x pipewire > /dev/null || pipewire &
|
||||
|
||||
export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')"
|
||||
|
||||
pipewire &
|
||||
xhost +si:localuser:$USER &
|
||||
xmodmap ~/.Xmodmap &
|
||||
|
||||
bspc monitor DVI-D-0 -d I II III IV V
|
||||
bspc monitor HDMI-0 -d VI VII VIII IX X
|
||||
|
||||
bspc monitor HDMI-0 -d I II III
|
||||
bspc monitor DP-0 -d IV V VI
|
||||
bspc config border_width 3
|
||||
bspc config window_gap 3
|
||||
|
||||
@@ -23,18 +23,16 @@ bspc config pointer_action3 resize_corner
|
||||
|
||||
bspc rule -a scratch sticky=on state=floating focus=on
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
|
||||
bspc config active_border_color "#E0A3B6"
|
||||
bspc config normal_border_color "#8393A1"
|
||||
bspc config focused_border_color "#93D4C5"
|
||||
|
||||
pgrep -x polybar > /dev/null || polybar &
|
||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||
pgrep -x xidlehook > /dev/null || xidlehook --detect-sleep --not-when-fullscreen --not-when-audio --timer 300 'betterlockscreen -l' '' --timer 1200 'sudo zzz' '' &
|
||||
pgrep -x xmousepaste > /dev/null || xmousepasteblock &
|
||||
pgrep xmousepaste > /dev/null || xmousepasteblock &
|
||||
pgrep -x polybar > /dev/null || exec ~/.config/polybar/launch.sh &
|
||||
|
||||
xsetroot -cursor_name left_ptr
|
||||
picom &
|
||||
feh --bg-fill ~/.bg/bg_5.png &
|
||||
feh --bg-fill ~/.bg/bg_5_1.png &
|
||||
dunst &
|
||||
|
||||
@@ -25,7 +25,10 @@ secondary = #E0A3B6
|
||||
alert = #E7A063
|
||||
disabled = #9DA991
|
||||
|
||||
[bar/example]
|
||||
|
||||
[bar/prime]
|
||||
monitor = HDMI-0
|
||||
|
||||
width = 100%
|
||||
height = 22pt
|
||||
|
||||
@@ -45,7 +48,7 @@ font-0 = "FiraCode Nerd Font Propo:size=10;2"
|
||||
|
||||
modules-left = xworkspaces
|
||||
modules-center = xwindow
|
||||
modules-right = cpu memory pulseaudio xkeyboard eth date calendar powermenu
|
||||
modules-right = systray pulseaudio xkeyboard eth date calendar powermenu
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
@@ -67,6 +70,73 @@ wm-restack = bspwm
|
||||
; For more information, see the documentation page for this module:
|
||||
; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
|
||||
|
||||
[bar/second]
|
||||
monitor=DP-0
|
||||
|
||||
width = 100%
|
||||
height = 22pt
|
||||
|
||||
; dpi = 96
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 2pt
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
module-margin = 1
|
||||
|
||||
font-0 = "FiraCode Nerd Font Propo:size=10;2"
|
||||
|
||||
modules-left = cpu memory
|
||||
modules-center = xwindow
|
||||
modules-right = pulseaudio xkeyboard date calendar powermenu
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
; wm-restack = generic
|
||||
wm-restack = bspwm
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
|
||||
; Seconds to sleep between updates
|
||||
; Default: 1
|
||||
interval = 0.5
|
||||
|
||||
; Default: 80
|
||||
; New in version 3.6.0
|
||||
warn-percentage = 95
|
||||
|
||||
format = <label> <ramp-coreload>
|
||||
|
||||
label = " %percentage%% "
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
ramp-coreload-spacing = 1
|
||||
ramp-coreload-0 = ▁
|
||||
ramp-coreload-1 = ▂
|
||||
ramp-coreload-2 = ▃
|
||||
ramp-coreload-3 = ▄
|
||||
ramp-coreload-4 = ▅
|
||||
ramp-coreload-5 = ▆
|
||||
ramp-coreload-6 = ▇
|
||||
ramp-coreload-7 = █
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
|
||||
interval = 3
|
||||
|
||||
format = <label>
|
||||
label = %gb_used%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[module/systray]
|
||||
type = internal/tray
|
||||
|
||||
@@ -96,17 +166,6 @@ label-empty-padding = 1
|
||||
type = internal/xwindow
|
||||
label = %title:0:60:...%
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#89A989}%mountpoint%%{F-} %percentage_used%%
|
||||
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
@@ -137,20 +196,6 @@ label-indicator-margin = 1
|
||||
label-indicator-foreground = ${colors.background}
|
||||
label-indicator-background = ${colors.secondary}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
|
||||
15
PC/polybar/launch.sh
Executable file
15
PC/polybar/launch.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
# If all your bars have ipc enabled, you can use
|
||||
polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
# killall -q polybar
|
||||
|
||||
# Launch bar1 and bar2
|
||||
echo "---" | tee -a /tmp/polybar1.log
|
||||
# echo "---" | tee -a /tmp/polybar2.log
|
||||
polybar prime 2>&1 | tee -a /tmp/polybar1.log & disown
|
||||
polybar second 2>&1 | tee -a /tmp/polybar2.log & disown
|
||||
|
||||
echo "Bars launched..."
|
||||
0
PC/sxhkd/nohup.out
Normal file
0
PC/sxhkd/nohup.out
Normal file
@@ -28,7 +28,7 @@ super + alt + {q,r}
|
||||
bspc {quit & pkill pipewire & pkill pipewire-pulse,wm -r}
|
||||
|
||||
alt + shift + l
|
||||
betterlockscreen -l dim
|
||||
betterlockscreen -l dim --show-layout
|
||||
|
||||
# close and kill
|
||||
super + {q, shift + q}
|
||||
|
||||
Reference in New Issue
Block a user