polybar changes and add ~/scripts to $PATH
This commit is contained in:
@@ -169,6 +169,9 @@ bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
|
|||||||
bindsym $mod+n workspace next
|
bindsym $mod+n workspace next
|
||||||
bindsym $mod+p workspace prev
|
bindsym $mod+p workspace prev
|
||||||
|
|
||||||
|
# switch to firefox when link gets clicked
|
||||||
|
for_window [urgent="latest" class="Firefox"] focus
|
||||||
|
|
||||||
# PC specific configurations:
|
# PC specific configurations:
|
||||||
# WORKSTATION START
|
# WORKSTATION START
|
||||||
{%@@ if profile == "work" @@%}
|
{%@@ if profile == "work" @@%}
|
||||||
@@ -220,8 +223,7 @@ bindsym $mod+Ctrl+2 move workspace to output $monitor2
|
|||||||
bindsym $mod+Shift+BackSpace exec "~/scripts/lock-laptop"
|
bindsym $mod+Shift+BackSpace exec "~/scripts/lock-laptop"
|
||||||
|
|
||||||
# Custom Workspaces
|
# Custom Workspaces
|
||||||
for_window [class="discord"] move container to workspace 8
|
#for_window [class="discord"] move container to workspace 8
|
||||||
for_window [class="Firefox"] move container to workspace 9
|
|
||||||
|
|
||||||
# Monitors
|
# Monitors
|
||||||
# Integrated
|
# Integrated
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ module-margin = 1
|
|||||||
|
|
||||||
modules-left = i3tabs title
|
modules-left = i3tabs title
|
||||||
modules-center = spotify_current
|
modules-center = spotify_current
|
||||||
modules-right = firefox spotify discord pipe backlight volume battery pipe date time pipe
|
modules-right = firefox spotify discord pipe backlight volume battery pipe network pipe date time pipe
|
||||||
separator =
|
separator =
|
||||||
|
|
||||||
wm-name = i3
|
wm-name = i3
|
||||||
@@ -81,7 +81,7 @@ monitor = ${env:MONITOR:}
|
|||||||
|
|
||||||
modules-left = i3tabs title
|
modules-left = i3tabs title
|
||||||
modules-center = spotify_current
|
modules-center = spotify_current
|
||||||
modules-right = firefox spotify discord pipe volume battery date time
|
modules-right = firefox spotify discord pipe volume battery pipe network pipe date time
|
||||||
separator =
|
separator =
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -206,10 +206,10 @@ interface = wlo1
|
|||||||
interval = 10.0
|
interval = 10.0
|
||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
label-connected = %essid%
|
label-connected = 泌 %essid%
|
||||||
|
|
||||||
format-disconnectded = <label-disconnected>
|
format-disconnectded = <label-disconnected>
|
||||||
label-disconnected = NO WIFI
|
label-disconnected = 泌 No Wifi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
@@ -232,13 +232,12 @@ type = custom/script
|
|||||||
exec = ~/.config/polybar/scripts/spotify.sh %artist% - %title%
|
exec = ~/.config/polybar/scripts/spotify.sh %artist% - %title%
|
||||||
tail = true
|
tail = true
|
||||||
interval = 2
|
interval = 2
|
||||||
click-left = spotify
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/spotify]
|
[module/spotify]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
content = ""
|
content = ""
|
||||||
click-left = spotify
|
click-left = spotify &
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/discord]
|
[module/discord]
|
||||||
@@ -250,7 +249,7 @@ click-left = Discord &
|
|||||||
[module/firefox]
|
[module/firefox]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
content = ""
|
content = ""
|
||||||
click-left = "firefox"
|
click-left = firefox &
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/pipe]
|
[module/pipe]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ main() {
|
|||||||
album=$(echo "$meta" | sed -nr '/xesam:album"/,+2s/^ +variant +string "(.*)"$/\1/p' | tail -1| sed 's/\&/\\&/g'| sed 's#\/#\\/#g')
|
album=$(echo "$meta" | sed -nr '/xesam:album"/,+2s/^ +variant +string "(.*)"$/\1/p' | tail -1| sed 's/\&/\\&/g'| sed 's#\/#\\/#g')
|
||||||
title=$(echo "$meta" | sed -nr '/xesam:title"/,+2s/^ +variant +string "(.*)"$/\1/p' | tail -1 | sed 's/\&/\\&/g'| sed 's#\/#\\/#g')
|
title=$(echo "$meta" | sed -nr '/xesam:title"/,+2s/^ +variant +string "(.*)"$/\1/p' | tail -1 | sed 's/\&/\\&/g'| sed 's#\/#\\/#g')
|
||||||
|
|
||||||
echo " ${*:-%artist% - %title%}" | sed "s/%artist%/$artist/g;s/%title%/$title/g;s/%album%/$album/g"i | sed "s/\&/\&/g" | sed "s#\/#\/#g"
|
echo "${*:-%artist% - %title%}" | sed "s/%artist%/$artist/g;s/%title%/$title/g;s/%album%/$album/g"i | sed "s/\&/\&/g" | sed "s#\/#\/#g"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,6 @@ i3lock \
|
|||||||
--veriftext="Tadasu..." \
|
--veriftext="Tadasu..." \
|
||||||
--noinputtext="" \
|
--noinputtext="" \
|
||||||
--locktext="Itterasshai!" \
|
--locktext="Itterasshai!" \
|
||||||
--wrongtext="Machigau!" \
|
--wrongtext="Chigau!" \
|
||||||
\
|
\
|
||||||
--ring-width 4
|
--ring-width 4
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ zstyle ':vcs_info:git:*' formats '%b'
|
|||||||
export TERM="xterm-256color"
|
export TERM="xterm-256color"
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export PATH=$PATH:$HOME/.local/bin
|
export PATH=$PATH:$HOME/.local/bin:$HOME/scripts
|
||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
alias vimrc="vim ~/.vimrc"
|
alias vimrc="vim ~/.vimrc"
|
||||||
|
|||||||
Reference in New Issue
Block a user