Remove bspwm config

This commit is contained in:
Thomas Dehaeze 2021-10-25 14:25:31 +02:00
parent 1697632bec
commit 53125d6f43

View File

@ -36,7 +36,7 @@ margin-bottom = 0
#+BEGIN_SRC conf
[bar/top]
enable-ipc = true
override-redirect = false
# override-redirect = false
bottom = 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-2 = Weather Icons:size=10;1
modules-left = i3 bspwm xwindow
modules-left = i3 xwindow
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-detached = true
@ -125,53 +125,11 @@ label-urgent-background = ${colors.red}
label-urgent-padding = 1
#+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
#+BEGIN_SRC conf
[module/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-padding = 0
@ -232,7 +190,7 @@ interval = 2
format-prefix-foreground = ${colors.fg}
format-underline = ${colors.bg}
label = %{A1:$TERMINAL -e "htop" &:}﬙ %percentage:2%%%{A}
label = %{A1:$TERMINAL -e htop &:}﬙ %percentage:2%%%{A}
#+END_SRC
* Date
@ -242,8 +200,8 @@ type = internal/date
interval = 1
# Open google calendar on left right
date = %{A1:$TERMINAL -e "ikhal" &:} %d-%m%{A}
date-alt = "%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}"
date = %{A1:$TERMINAL --title khal -e ikhal &:} %d-%m%{A}
date-alt = "%{A1:$TERMINAL --title khal -e ikhal &:} %d-%m-%Y%{A}"
time =  %H:%M
time-alt =  %H:%M:%S
@ -315,10 +273,11 @@ ramp-capacity-4 = 
type = internal/temperature
interval = 2
thermal-zone = 0
warn-temperature = 70
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
base-temperature = 50
warn-temperature = 80
hwmon-path = /sys/class/thermal/thermal_zone10/temp
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>
label = %temperature-c%°C
label-warn = %temperature-c%°C
@ -383,7 +342,7 @@ checkmail -q && \
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
$TERMINAL -e tmux new-session -A -s neomutt neomutt
#+end_src
* Unread News
@ -441,7 +400,7 @@ fi
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
$TERMINAL -e "tmux new-session -A -s newsboat newsboat"
$TERMINAL -e tmux new-session -A -s newsboat newsboat
#+end_src
* Calendar
@ -496,7 +455,7 @@ echo "${cal_icon}${cal_nb}${cal_desc}"
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
$TERMINAL --class="Floating" -e "khal interactive"
$TERMINAL --title=khal -e ikhal
#+end_src
* Redshift
@ -600,7 +559,7 @@ fi
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
$TERMINAL -e "paru"
$TERMINAL -e paru
#+END_SRC
* Dunst
@ -738,7 +697,7 @@ label-disconnected-foreground = #777
:END:
#+begin_src bash
$TERMINAL -e 'sudo nmtui'
$TERMINAL -e sudo nmtui
#+end_src
** Toggle Wifi or Ethernet
@ -972,6 +931,49 @@ fi
#+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
#+BEGIN_SRC conf