Remove bspwm config
This commit is contained in:
parent
1697632bec
commit
53125d6f43
118
polybar.org
118
polybar.org
@ -36,7 +36,7 @@ margin-bottom = 0
|
|||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
[bar/top]
|
[bar/top]
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
override-redirect = false
|
# override-redirect = false
|
||||||
bottom = false
|
bottom = false
|
||||||
fixed-center = false
|
fixed-center = false
|
||||||
|
|
||||||
@ -61,11 +61,11 @@ font-0 = Hack Nerd Font:style=Medium,Regular:pixelsize=10;1
|
|||||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
font-2 = Weather Icons:size=10;1
|
font-2 = Weather Icons:size=10;1
|
||||||
|
|
||||||
modules-left = i3 bspwm xwindow
|
modules-left = i3 xwindow
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = pulseaudio wired-network wireless-network nordvpn bluetooth redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
modules-right = pulseaudio wired-network wireless-network wireguard nordvpn bluetooth redshift cursor lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||||
|
|
||||||
wm-restack = i3
|
# wm-restack = i3
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-detached = true
|
tray-detached = true
|
||||||
@ -125,53 +125,11 @@ label-urgent-background = ${colors.red}
|
|||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* BSPWM
|
|
||||||
#+begin_src conf
|
|
||||||
[module/bspwm]
|
|
||||||
type = internal/bspwm
|
|
||||||
|
|
||||||
pin-workspaces = true
|
|
||||||
enable-click = true
|
|
||||||
enable-scroll = false
|
|
||||||
|
|
||||||
; Use fuzzy (partial) matching on labels when assigning
|
|
||||||
; icons to workspaces
|
|
||||||
; Example: code;♚ will apply the icon to all workspaces
|
|
||||||
; containing 'code' in the label
|
|
||||||
fuzzy-match = false
|
|
||||||
|
|
||||||
|
|
||||||
ws-icon-0 = code;
|
|
||||||
ws-icon-1 = web;
|
|
||||||
ws-icon-2 = mail;
|
|
||||||
ws-icon-3 = misc;
|
|
||||||
ws-icon-4 = figs;ﬧ
|
|
||||||
ws-icon-default =
|
|
||||||
|
|
||||||
label-focused = %icon%
|
|
||||||
label-focused-foreground = ${colors.bg}
|
|
||||||
label-focused-background = ${colors.aqua}
|
|
||||||
label-focused-underline= ${colors.aqua}
|
|
||||||
label-focused-padding = 1
|
|
||||||
|
|
||||||
label-occupied = %icon%
|
|
||||||
label-occupied-underline = ${colors.fg}
|
|
||||||
label-occupied-padding = 1
|
|
||||||
|
|
||||||
label-urgent = %icon%
|
|
||||||
label-urgent-background = ${colors.red}
|
|
||||||
label-urgent-padding = 1
|
|
||||||
|
|
||||||
label-empty = %icon%
|
|
||||||
label-empty-foreground = ${colors.fg}
|
|
||||||
label-empty-padding = 1
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Music using MPD
|
* Music using MPD
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
[module/mpd]
|
[module/mpd]
|
||||||
type = internal/mpd
|
type = internal/mpd
|
||||||
format-online = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e "ncmpcpp" &:}<label-song>%{A}
|
format-online = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e ncmpcpp &:}<label-song>%{A}
|
||||||
|
|
||||||
format-online-spacing = 0
|
format-online-spacing = 0
|
||||||
format-online-padding = 0
|
format-online-padding = 0
|
||||||
@ -232,7 +190,7 @@ interval = 2
|
|||||||
format-prefix-foreground = ${colors.fg}
|
format-prefix-foreground = ${colors.fg}
|
||||||
format-underline = ${colors.bg}
|
format-underline = ${colors.bg}
|
||||||
|
|
||||||
label = %{A1:$TERMINAL -e "htop" &:} %percentage:2%%%{A}
|
label = %{A1:$TERMINAL -e htop &:} %percentage:2%%%{A}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Date
|
* Date
|
||||||
@ -242,8 +200,8 @@ type = internal/date
|
|||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
# Open google calendar on left right
|
# Open google calendar on left right
|
||||||
date = %{A1:$TERMINAL -e "ikhal" &:} %d-%m%{A}
|
date = %{A1:$TERMINAL --title khal -e ikhal &:} %d-%m%{A}
|
||||||
date-alt = "%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}"
|
date-alt = "%{A1:$TERMINAL --title khal -e ikhal &:} %d-%m-%Y%{A}"
|
||||||
|
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
time-alt = %H:%M:%S
|
time-alt = %H:%M:%S
|
||||||
@ -315,10 +273,11 @@ ramp-capacity-4 =
|
|||||||
type = internal/temperature
|
type = internal/temperature
|
||||||
interval = 2
|
interval = 2
|
||||||
thermal-zone = 0
|
thermal-zone = 0
|
||||||
warn-temperature = 70
|
base-temperature = 50
|
||||||
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
|
warn-temperature = 80
|
||||||
|
hwmon-path = /sys/class/thermal/thermal_zone10/temp
|
||||||
units = false
|
units = false
|
||||||
format = %{A1:$TERMINAL --class="Floating" -e "watch sensors" &:}<ramp> <label>%{A}
|
format = %{A1:$TERMINAL --title="Sensors" -e watch sensors &:}<ramp> <label>%{A}
|
||||||
format-warn = <ramp> <label-warn>
|
format-warn = <ramp> <label-warn>
|
||||||
label = %temperature-c%°C
|
label = %temperature-c%°C
|
||||||
label-warn = %temperature-c%°C
|
label-warn = %temperature-c%°C
|
||||||
@ -383,7 +342,7 @@ checkmail -q && \
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
|
$TERMINAL -e tmux new-session -A -s neomutt neomutt
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Unread News
|
* Unread News
|
||||||
@ -441,7 +400,7 @@ fi
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
$TERMINAL -e "tmux new-session -A -s newsboat newsboat"
|
$TERMINAL -e tmux new-session -A -s newsboat newsboat
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Calendar
|
* Calendar
|
||||||
@ -496,7 +455,7 @@ echo "${cal_icon}${cal_nb}${cal_desc}"
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
$TERMINAL --class="Floating" -e "khal interactive"
|
$TERMINAL --title=khal -e ikhal
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Redshift
|
* Redshift
|
||||||
@ -600,7 +559,7 @@ fi
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
$TERMINAL -e "paru"
|
$TERMINAL -e paru
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Dunst
|
* Dunst
|
||||||
@ -738,7 +697,7 @@ label-disconnected-foreground = #777
|
|||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
$TERMINAL -e 'sudo nmtui'
|
$TERMINAL -e sudo nmtui
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Toggle Wifi or Ethernet
|
** Toggle Wifi or Ethernet
|
||||||
@ -972,6 +931,49 @@ fi
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
* High cursor
|
||||||
|
#+BEGIN_SRC conf
|
||||||
|
[module/cursor]
|
||||||
|
type = custom/script
|
||||||
|
|
||||||
|
format-underline = ${colors.bg}
|
||||||
|
click-left = ~/.config/polybar/scripts/cursor-toggle.sh >/dev/null 2>%1 &
|
||||||
|
format = <label>
|
||||||
|
exec = ~/.config/polybar/scripts/cursor-status.sh
|
||||||
|
|
||||||
|
interval = 2
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Cursor - Status
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/.config/polybar/scripts/cursor-status.sh
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
#+begin_src bash
|
||||||
|
if pgrep -x "highlight-point" >/dev/null; then
|
||||||
|
echo "%{F#859900}%{F-}";
|
||||||
|
else
|
||||||
|
echo "";
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Toggle Cursor
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/.config/polybar/scripts/cursor-toggle.sh
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
#+begin_src bash
|
||||||
|
if pgrep -x "highlight-point" >/dev/null; then
|
||||||
|
killall highlight-point && \
|
||||||
|
dunstify --replace=46492 "Cursor" "Turned off";
|
||||||
|
else
|
||||||
|
nohup highlight-pointer -r 10 > /dev/null 2>&1 &
|
||||||
|
dunstify --replace=46492 "Cursor" "Highlight...";
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Screenshot
|
* Screenshot
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
|
Loading…
Reference in New Issue
Block a user