mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(*): add pntk config
This commit is contained in:
parent
4e0d2fb6e2
commit
1fad2e5ebe
4 changed files with 26 additions and 19 deletions
11
.bashrc
11
.bashrc
|
|
@ -15,10 +15,17 @@ export MANPATH="/usr/local/texlive/2020/texmf-dist/doc/man:$MANPATH"
|
||||||
export INFOPATH="/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH"
|
export INFOPATH="/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH"
|
||||||
export PATH="/usr/local/texlive/2020/bin/x86_64-linux:$PATH"
|
export PATH="/usr/local/texlive/2020/bin/x86_64-linux:$PATH"
|
||||||
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
if [ -d "$HOME/.cargo" ] ; then
|
||||||
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
fi
|
||||||
|
if [ -d "$HOME/.rvm" ] ; then
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin"
|
||||||
|
fi
|
||||||
|
if [ -d "$HOME/go" ] ; then
|
||||||
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
|
fi
|
||||||
# export PATH="$HOME/.gem/ruby/2.7.0/bin/:$PATH"
|
# export PATH="$HOME/.gem/ruby/2.7.0/bin/:$PATH"
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/.rvm/bin"
|
|
||||||
|
|
||||||
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && ${use_fish} ]]
|
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && ${use_fish} ]]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ label-mode-background = ${colors.blue}
|
||||||
|
|
||||||
; focused = Active workspace on focused monitor
|
; focused = Active workspace on focused monitor
|
||||||
label-focused = %name%
|
label-focused = %name%
|
||||||
label-focused-background = ${colors.background}
|
; label-focused-background = ${colors.background-alt}
|
||||||
label-focused-underline= ${colors.blue}
|
label-focused-underline= ${colors.blue}
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
|
|
||||||
|
|
@ -129,9 +129,9 @@ label-unfocused-padding = 1
|
||||||
|
|
||||||
; visible = Active workspace on unfocused monitor
|
; visible = Active workspace on unfocused monitor
|
||||||
label-visible = %name%
|
label-visible = %name%
|
||||||
label-visible-background = ${self.label-focused-background}
|
; label-visible-background = ${self.label-focused-background}
|
||||||
label-visible-underline = ${self.label-focused-underline}
|
; label-visible-underline = ${self.label-focused-underline}
|
||||||
label-visible-padding = ${self.label-focused-padding}
|
; label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
; urgent = Workspace with urgency hint set
|
; urgent = Workspace with urgency hint set
|
||||||
label-urgent = %name%
|
label-urgent = %name%
|
||||||
|
|
@ -242,7 +242,7 @@ format-underline = ${colors.yellow}
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
interface = wlp35s0f3u2
|
interface = ${env:WLAN_INTERFACE}
|
||||||
|
|
||||||
; format-connected = [<ramp-signal>] <label-connected>
|
; format-connected = [<ramp-signal>] <label-connected>
|
||||||
|
|
||||||
|
|
|
||||||
10
.profile
10
.profile
|
|
@ -4,17 +4,7 @@ export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||||
|
|
||||||
export MANPATH="/usr/local/texlive/2020/texmf-dist/doc/man:$MANPATH"
|
|
||||||
export INFOPATH="/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH"
|
|
||||||
export PATH="/usr/local/texlive/2020/bin/x86_64-linux:$PATH"
|
|
||||||
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
export PATH="$HOME/bin/scripts:$PATH"
|
export PATH="$HOME/bin/scripts:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
|
|
||||||
export PATH="$PATH:$HOME/.rvm/bin"
|
|
||||||
|
|
||||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,31 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# TRAY_MONITOR="HDMI-A-0"
|
hostname=$(hostname)
|
||||||
TRAY_MONITOR="DVI-D-0"
|
if [ "$hostname" = "pntk" ]; then
|
||||||
|
TRAY_MONITOR="eDP1"
|
||||||
|
export WLAN_INTERFACE="wlp3s0"
|
||||||
|
else
|
||||||
|
TRAY_MONITOR="HDMI-A-0"
|
||||||
|
export WLAN_INTERFACE="wlp35s0f3u2"
|
||||||
|
fi
|
||||||
declare -A FONT_SIZES=(
|
declare -A FONT_SIZES=(
|
||||||
|
["eDP1"]="13"
|
||||||
["DVI-D-0"]="11"
|
["DVI-D-0"]="11"
|
||||||
["HDMI-A-0"]="13"
|
["HDMI-A-0"]="13"
|
||||||
)
|
)
|
||||||
declare -A EMOJI_SCALE=(
|
declare -A EMOJI_SCALE=(
|
||||||
|
["eDP1"]="9"
|
||||||
["DVI-D-0"]="10"
|
["DVI-D-0"]="10"
|
||||||
["HDMI-A-0"]="10"
|
["HDMI-A-0"]="10"
|
||||||
)
|
)
|
||||||
declare -A BAR_HEIGHT=(
|
declare -A BAR_HEIGHT=(
|
||||||
|
["eDP1"]="29"
|
||||||
["DVI-D-0"]="23"
|
["DVI-D-0"]="23"
|
||||||
["HDMI-A-0"]="29"
|
["HDMI-A-0"]="29"
|
||||||
)
|
)
|
||||||
declare -A BLOCKS=(
|
declare -A BLOCKS=(
|
||||||
["DVI-D-0"]="pulseaudio SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP"
|
["DVI-D-0"]="pulseaudio SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP"
|
||||||
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP"
|
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP"
|
||||||
|
["eDP1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP"
|
||||||
)
|
)
|
||||||
|
|
||||||
pkill polybar
|
pkill polybar
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue