commit files
parent
a14e748143
commit
b5f593736a
|
@ -1,3 +1,5 @@
|
||||||
# dotfiles
|
|
||||||
|
|
||||||
Personal configs and dotfiles
|
<img src="img/u.png" alt="drawing" width="200"/>
|
||||||
|
|
||||||
|
# my dotfiles
|
||||||
|
i should make a install script some day instead of changing hardcoded paths
|
|
@ -0,0 +1,31 @@
|
||||||
|
# attempt at creating a base16-tomorrow themed cmus
|
||||||
|
# by leofa
|
||||||
|
#
|
||||||
|
### colors
|
||||||
|
### {{{
|
||||||
|
set color_cmdline_fg=lightcyan
|
||||||
|
set color_cmdline_bg=234
|
||||||
|
set color_separator=238
|
||||||
|
set color_statusline_bg=235
|
||||||
|
set color_statusline_fg=lightmagenta
|
||||||
|
set color_titleline_bg=236
|
||||||
|
set color_titleline_fg=lightblue
|
||||||
|
set color_win_bg=black
|
||||||
|
set color_win_fg=188
|
||||||
|
set color_win_cur=lightgreen
|
||||||
|
set color_win_cur_sel_bg=lightblue
|
||||||
|
set color_win_cur_sel_fg=232
|
||||||
|
set color_win_dir=lightblue
|
||||||
|
set color_win_fg=white
|
||||||
|
set color_win_inactive_cur_sel_bg=lightblue
|
||||||
|
set color_win_inactive_cur_sel_fg=232
|
||||||
|
set color_win_inactive_sel_bg=237
|
||||||
|
set color_win_inactive_sel_fg=lightblue
|
||||||
|
set color_win_sel_bg=237
|
||||||
|
set color_win_sel_fg=white
|
||||||
|
set color_win_title_bg=237
|
||||||
|
set color_win_title_fg=173
|
||||||
|
set color_error=lightred
|
||||||
|
set color_info=lightgreen
|
||||||
|
### }}}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
# modified mh theme
|
||||||
|
|
||||||
|
# features:
|
||||||
|
# path is autoshortened to ~30 characters
|
||||||
|
# displays git status (if applicable in current folder)
|
||||||
|
# turns username green if superuser, otherwise it is white
|
||||||
|
|
||||||
|
# if superuser make the username green
|
||||||
|
if [ $UID -eq 0 ]; then NCOLOR="green"; else NCOLOR="white"; fi
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
user='%{$fg[green]%}%B%n%b%{$reset_color%}'
|
||||||
|
host='@$fg[green]%}%B%m%b%{$reset_color%}:%{$fg[green]%}%30<...<%~%<<%{$reset_color%}'
|
||||||
|
PROMPT='['$user$host']%(!.#.$) '
|
||||||
|
|
||||||
|
# git theming
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[gray]%}(%{$fg_no_bold[yellow]%}%B"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[gray]%})%{$reset_color%} "
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}(x)"
|
||||||
|
|
||||||
|
# LS colors, made with https://geoff.greer.fm/lscolors/
|
||||||
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
# export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
|
||||||
|
export LS_COLORS="di=34:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=31;40"
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,4 @@
|
||||||
|
/* using the same font system wide */
|
||||||
|
* {
|
||||||
|
font-family: GohuFont Medium;
|
||||||
|
}
|
|
@ -0,0 +1,143 @@
|
||||||
|
# vars
|
||||||
|
set $mod Mod4
|
||||||
|
font pango:GohuFont Medium 8
|
||||||
|
floating_modifier $mod
|
||||||
|
client.focused #30D700 #308800 #ffffff #121212
|
||||||
|
client.focused_inactive #114E00 #031d09 #ffffff #031d09
|
||||||
|
client.unfocused #114E00 #031d09 #888888 #031d09
|
||||||
|
client.urgent #C10004 #900000 #ffffff #900000
|
||||||
|
#
|
||||||
|
# bindings
|
||||||
|
#
|
||||||
|
bindsym $mod+r mode "resize"
|
||||||
|
bindsym XF86AudioRaiseVolume exec amixer set Master 1%+
|
||||||
|
bindsym XF86AudioLowerVolume exec amixer set Master 1%-
|
||||||
|
bindsym XF86MonBrightnessUp exec light -A 1
|
||||||
|
bindsym XF86MonBrightnessDown exec light -U 1
|
||||||
|
bindsym $mod+Shift+x exec setxkbmap gb
|
||||||
|
bindsym $mod+Shift+z exec setxkbmap us
|
||||||
|
# kill focused window
|
||||||
|
bindsym $mod+Shift+q kill
|
||||||
|
# common launches
|
||||||
|
bindsym $mod+Shift+d exec i3-dmenu-desktop --dmenu='dmenu -i -p "Run"'
|
||||||
|
bindsym $mod+d exec dmenu_run -i -p 'Run'
|
||||||
|
bindsym $mod+Return exec gnome-terminal
|
||||||
|
bindsym $mod+Shift+Return exec caja
|
||||||
|
bindsym Print exec spectacle -r
|
||||||
|
bindsym XF86Launch1 exec spectacle -r
|
||||||
|
# window focus IJKL
|
||||||
|
bindsym $mod+j focus left
|
||||||
|
bindsym $mod+k focus down
|
||||||
|
bindsym $mod+l focus up
|
||||||
|
bindsym $mod+semicolon focus right
|
||||||
|
# window focus arrows
|
||||||
|
bindsym $mod+Left focus left
|
||||||
|
bindsym $mod+Down focus down
|
||||||
|
bindsym $mod+Up focus up
|
||||||
|
bindsym $mod+Right focus right
|
||||||
|
# move focus IJKL
|
||||||
|
bindsym $mod+Shift+j move left
|
||||||
|
bindsym $mod+Shift+k move down
|
||||||
|
bindsym $mod+Shift+l move up
|
||||||
|
bindsym $mod+Shift+semicolon move right
|
||||||
|
# move focus arrow
|
||||||
|
bindsym $mod+Shift+Left move left
|
||||||
|
bindsym $mod+Shift+Down move down
|
||||||
|
bindsym $mod+Shift+Up move up
|
||||||
|
bindsym $mod+Shift+Right move right
|
||||||
|
# mouse
|
||||||
|
bindsym $mod+h split h
|
||||||
|
bindsym $mod+v split v
|
||||||
|
#layout
|
||||||
|
bindsym $mod+f fullscreen toggle
|
||||||
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
bindsym $mod+s layout stacking
|
||||||
|
bindsym $mod+w layout tabbed
|
||||||
|
bindsym $mod+e layout toggle split
|
||||||
|
bindsym $mod+space focus mode_toggle
|
||||||
|
bindsym $mod+a focus parent
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $mod+1 workspace 1
|
||||||
|
bindsym $mod+2 workspace 2
|
||||||
|
bindsym $mod+3 workspace 3
|
||||||
|
bindsym $mod+4 workspace 4
|
||||||
|
bindsym $mod+5 workspace 5
|
||||||
|
bindsym $mod+6 workspace 6
|
||||||
|
bindsym $mod+7 workspace 7
|
||||||
|
bindsym $mod+8 workspace 8
|
||||||
|
bindsym $mod+9 workspace 9
|
||||||
|
bindsym $mod+0 workspace 10
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $mod+Shift+1 move container to workspace 1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace 2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace 3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace 4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace 5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace 6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace 7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace 8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace 9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace 10
|
||||||
|
# reload or restart
|
||||||
|
bindsym $mod+Shift+c reload
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
#
|
||||||
|
# gaps settings
|
||||||
|
#
|
||||||
|
for_window [class="^.*"] border pixel 3
|
||||||
|
gaps inner 30
|
||||||
|
gaps outer 0
|
||||||
|
# gaps mode
|
||||||
|
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||||
|
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||||
|
mode "$mode_gaps" {
|
||||||
|
bindsym o mode "$mode_gaps_outer"
|
||||||
|
bindsym i mode "$mode_gaps_inner"
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_inner" {
|
||||||
|
bindsym plus gaps inner current plus 5
|
||||||
|
bindsym minus gaps inner current minus 5
|
||||||
|
bindsym 0 gaps inner current set 0
|
||||||
|
bindsym Shift+plus gaps inner all plus 5
|
||||||
|
bindsym Shift+minus gaps inner all minus 5
|
||||||
|
bindsym Shift+0 gaps inner all set 0
|
||||||
|
bindsym Shift+5 gaps inner all set 30
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_outer" {
|
||||||
|
bindsym plus gaps outer current plus 5
|
||||||
|
bindsym minus gaps outer current minus 5
|
||||||
|
bindsym 0 gaps outer current set 0
|
||||||
|
bindsym Shift+plus gaps outer all plus 5
|
||||||
|
bindsym Shift+minus gaps outer all minus 5
|
||||||
|
bindsym Shift+0 gaps outer all set 0
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "resize" {
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
bindsym j resize shrink width 1 px or 1 ppt
|
||||||
|
bindsym k resize grow height 1 px or 1 ppt
|
||||||
|
bindsym i resize shrink height 1 px or 1 ppt
|
||||||
|
bindsym l resize grow width 1 px or 1 ppt
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
for_window [window_role="pop-up"] floating enable,move absolute center
|
||||||
|
#
|
||||||
|
# misc and startup
|
||||||
|
#
|
||||||
|
mouse_warping output
|
||||||
|
focus_follows_mouse yes
|
||||||
|
exec --no-startup-id nitrogen --restore
|
||||||
|
exec --no-startup-id $HOME/.screenlayout/screenlayout.sh
|
||||||
|
exec --no-startup-id $HOME/.config/polybar/polystart.sh
|
||||||
|
exec --no-startup-id exec compton
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Code inspired by content found at http://v3gard.com/2011/01/getting-cmus-to-cooperate-with-conky/
|
||||||
|
|
||||||
|
if ps -C cmus > /dev/null; then
|
||||||
|
|
||||||
|
artist=`cmus-remote -Q |
|
||||||
|
grep --text '^tag artist' |
|
||||||
|
sed '/^tag artistsort/d' |
|
||||||
|
awk '{gsub("tag artist ", "");print}'`
|
||||||
|
title=`cmus-remote -Q |
|
||||||
|
grep --text '^tag title' |
|
||||||
|
sed -e 's/tag title //' |
|
||||||
|
awk '{gsub("tag title ", "");print}'`
|
||||||
|
|
||||||
|
echo "$title"; else echo "";
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,261 @@
|
||||||
|
[colors]
|
||||||
|
|
||||||
|
darkgray = #373b41
|
||||||
|
orange = ${xrdb:color9}
|
||||||
|
white = #c5c8c6
|
||||||
|
gray = #707880
|
||||||
|
black = #1d1f21
|
||||||
|
red = #a54242
|
||||||
|
blue = #5f819d
|
||||||
|
yellow = #f0c674
|
||||||
|
green = #b5bd68
|
||||||
|
background = #114E00
|
||||||
|
background-alt = #1d1f21
|
||||||
|
foreground = #c5c8c6
|
||||||
|
foreground-alt = #c5c8c9
|
||||||
|
primary = #282a2e
|
||||||
|
secondary = c5c8c6
|
||||||
|
alert = #a54242
|
||||||
|
|
||||||
|
pseudo-transparency = true
|
||||||
|
|
||||||
|
[bar/bar]
|
||||||
|
monitor = ${env:MONITOR:""}
|
||||||
|
width = 100%
|
||||||
|
height = 20
|
||||||
|
fixed-center = true
|
||||||
|
enable-ipc = true
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 0
|
||||||
|
|
||||||
|
module-margin-left = 0
|
||||||
|
module-margin-right = 0
|
||||||
|
modules-right = workspace i3 cmus-np network volume system-cpu-temppercore date keyboard powermenu
|
||||||
|
modules-center = title
|
||||||
|
modules-left = mpd cpu memory uptime weather battery
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
underline-size = 2
|
||||||
|
underline-color = ${colors.white}
|
||||||
|
tray-detached = false
|
||||||
|
tray-position = right
|
||||||
|
tray-maxsize = 18
|
||||||
|
tray-transparent = false
|
||||||
|
tray-scale = 1.0
|
||||||
|
tray-offset-x = 0
|
||||||
|
font-0 = "Hack:size=8;2"
|
||||||
|
font-1 = "FontAwesome:size=8;2"
|
||||||
|
font-2 = "NotoEmoji:size=8;2"
|
||||||
|
font-3 = "UnifontUpper:size=8;2"
|
||||||
|
font-4 = "Font Awesome 5 Brands:size=8;2"
|
||||||
|
font-5 = "Font Awesome 5 Free Solid:size=8;2"
|
||||||
|
|
||||||
|
|
||||||
|
;override-redirect = true
|
||||||
|
wm-restack = i3
|
||||||
|
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = "<label-state>"
|
||||||
|
index-sort = false
|
||||||
|
wrapping-scroll = false
|
||||||
|
pin-workspaces = false
|
||||||
|
strip-wsnumbers = false
|
||||||
|
label-focused = %index%
|
||||||
|
label-visible = %name%
|
||||||
|
label-urgent = " !"
|
||||||
|
label-focused-padding-right = 1
|
||||||
|
label-unfocused-padding-right = 1
|
||||||
|
label-visible-padding-right = 1
|
||||||
|
label-urgent-padding-right = 1
|
||||||
|
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
date-alt = %A, %d %B %Y %H:%M
|
||||||
|
date = %{F#928374}%{F-} %H:%M
|
||||||
|
interval = 5
|
||||||
|
format-foreground = ${colors.foreground}
|
||||||
|
format-padding = 1
|
||||||
|
label-separator = |
|
||||||
|
|
||||||
|
[module/volume]
|
||||||
|
type = internal/volume
|
||||||
|
ramp-volume-0 =
|
||||||
|
ramp-volume-1 =
|
||||||
|
ramp-volume-2 =
|
||||||
|
format-volume = <ramp-volume> <bar-volume>
|
||||||
|
format-muted-prefix =
|
||||||
|
format-muted-foreground = ${colors.white}
|
||||||
|
label-muted = 🔇 SOUND MUTED
|
||||||
|
format-padding = 10
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
bar-volume-foreground-1 = #55aa55
|
||||||
|
bar-volume-foreground-2 = #55aa55
|
||||||
|
bar-volume-foreground-3 = #55aa55
|
||||||
|
bar-volume-foreground-4 = #55aa55
|
||||||
|
bar-volume-foreground-5 = #f5a70a
|
||||||
|
bar-volume-foreground-6 = #ff5555
|
||||||
|
bar-volume-gradient = true
|
||||||
|
bar-volume-indicator = ▒
|
||||||
|
bar-volume-indicator-font = 2
|
||||||
|
bar-volume-fill = ▓
|
||||||
|
bar-volume-fill-font = 2
|
||||||
|
bar-volume-empty = ░
|
||||||
|
bar-volume-empty-font = 2
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||||
|
format-muted-padding = 1
|
||||||
|
format-volume-padding = 1
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = #928374
|
||||||
|
;format-underline = #f90000
|
||||||
|
label = %percentage:2%%
|
||||||
|
label-foreground = ${root.foreground}
|
||||||
|
format-padding = 1
|
||||||
|
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-prefix = ""
|
||||||
|
format-prefix-foreground = #928374
|
||||||
|
;format-underline = #4bffdc
|
||||||
|
label = %percentage_used:2%% %gb_used:3%
|
||||||
|
label-foreground = ${root.foreground}
|
||||||
|
format-padding = 1
|
||||||
|
|
||||||
|
[module/powermenu]
|
||||||
|
type = custom/menu
|
||||||
|
format-spacing = 1
|
||||||
|
label-open =
|
||||||
|
label-open-foreground = ${colors.secondary}
|
||||||
|
label-close = cancel
|
||||||
|
label-close-foreground = ${colors.secondary}
|
||||||
|
label-separator = |
|
||||||
|
label-separator-foreground = ${colors.foreground-alt}
|
||||||
|
menu-0-0 = reboot
|
||||||
|
menu-0-0-exec = menu-open-1
|
||||||
|
menu-0-1 = power off
|
||||||
|
menu-0-1-exec = menu-open-2
|
||||||
|
menu-0-2 = log out
|
||||||
|
menu-0-2-exec = menu-open-3
|
||||||
|
;MENU1
|
||||||
|
menu-1-0 = reboot
|
||||||
|
menu-1-0-exec = reboot
|
||||||
|
menu-1-1 = back
|
||||||
|
menu-1-1-exec = menu-open-0
|
||||||
|
;MENU2
|
||||||
|
menu-2-0 = power off
|
||||||
|
menu-2-0-exec = shutdown now
|
||||||
|
menu-2-1 = back
|
||||||
|
menu-2-1-exec = menu-open-0
|
||||||
|
;MENU3
|
||||||
|
menu-3-0 = log out
|
||||||
|
menu-3-0-exec = i3-msg exit
|
||||||
|
menu-3-1 = back
|
||||||
|
menu-3-1-exec = menu-open-0
|
||||||
|
format-padding = 1
|
||||||
|
|
||||||
|
[module/title]
|
||||||
|
type = internal/xwindow
|
||||||
|
format-prefix = " "
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
label-maxlen = 50
|
||||||
|
|
||||||
|
[module/keyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
format-prefix = ""
|
||||||
|
|
||||||
|
label-layout-padding = 1
|
||||||
|
format = <label-layout>
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
|
||||||
|
; vim:ft=dosini
|
||||||
|
|
||||||
|
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp3s0
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 1
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
|
||||||
|
font-8 = "FontAwesome:size=8;2"
|
||||||
|
|
||||||
|
label-active-font = 8
|
||||||
|
; Test connectivity every Nth update
|
||||||
|
; A value of 0 disables the feature
|
||||||
|
; NOTE: Experimental (needs more testing)
|
||||||
|
; Default: 0
|
||||||
|
;ping-interval = 3
|
||||||
|
|
||||||
|
label-connected = %upspeed% %downspeed:9%
|
||||||
|
|
||||||
|
; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
|
||||||
|
; Minimum output width of upload/download rate
|
||||||
|
; Default: 3
|
||||||
|
udspeed-minwidth = 5
|
||||||
|
|
||||||
|
; Accumulate values from all interfaces
|
||||||
|
; when querying for up/downspeed rate
|
||||||
|
; Default: false
|
||||||
|
accumulate-stats = true
|
||||||
|
|
||||||
|
; Consider an `UNKNOWN` interface state as up.
|
||||||
|
; Some devices have an unknown state, even when they're running
|
||||||
|
; Default: false
|
||||||
|
unknown-as-up = true
|
||||||
|
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
|
||||||
|
format-prefix = " "
|
||||||
|
label-charging = " %percentage%%"
|
||||||
|
label-discharging = " %percentage%%"
|
||||||
|
label-full = " %percentage%%"
|
||||||
|
|
||||||
|
; This is useful in case the battery never reports 100% charge
|
||||||
|
full-at = 99
|
||||||
|
|
||||||
|
; Use the following command to list batteries and adapters:
|
||||||
|
; $ ls -1 /sys/class/power_supply/
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC
|
||||||
|
|
||||||
|
; Disable polling by setting the interval to 0.
|
||||||
|
;
|
||||||
|
; Default: 5
|
||||||
|
poll-interval = 5
|
||||||
|
|
||||||
|
|
||||||
|
[module/uptime]
|
||||||
|
type = custom/script
|
||||||
|
format-prefix = ""
|
||||||
|
exec = uptime -p | sed -e 's/\<up\>//g'
|
||||||
|
tail = true
|
||||||
|
|
||||||
|
[module/workspace]
|
||||||
|
type = custom/script
|
||||||
|
format-prefix = " "
|
||||||
|
exec = ~/.config/polybar/jshon.sh
|
||||||
|
tail = true
|
||||||
|
|
||||||
|
[module/system-cpu-temppercore]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.config/polybar/system-cpu-temppercore.sh
|
||||||
|
interval = 60
|
||||||
|
format-prefix = " "
|
||||||
|
|
||||||
|
[module/cmus-np]
|
||||||
|
type = custom/script
|
||||||
|
format-prefix = " "
|
||||||
|
exec = ~/.config/polybar/cmus-np.sh
|
||||||
|
tail = true
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
workspace=0
|
||||||
|
# jshon output: one field per line; first name then focues state, then the next name, ...
|
||||||
|
while read line; do
|
||||||
|
if [ "$line" = true ]; then
|
||||||
|
break # break if we found the active workspace
|
||||||
|
else
|
||||||
|
workspace="$line" # evaluate the next workspace
|
||||||
|
fi
|
||||||
|
done < <(i3-msg -t get_workspaces | jshon -a -e name -u -p -e focused -u)
|
||||||
|
echo $workspace # name of active workspace
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
xrandr --query | grep ' connected' | cut -d' ' -f1 | while read m; do
|
||||||
|
MONITOR=$m polybar -r bar &
|
||||||
|
sleep 1
|
||||||
|
done
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
sensors | grep Core | awk '{print substr($3, 2, length($3)-5)}' | tr "\\n" " " | sed 's/ /°C /g' | sed 's/ $//'
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
xrandr --output DP-3 --off --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-I-1 --primary --mode 1920x1080 --pos 3840x0 --rotate normal --output DP-2 --off --output DP-1 --mode 1920x1080 --pos 1920x0 --rotate normal
|
|
@ -0,0 +1,64 @@
|
||||||
|
{
|
||||||
|
"extensions.ignoreRecommendations": true,
|
||||||
|
"telemetry.enableCrashReporter": false,
|
||||||
|
"telemetry.enableTelemetry": false,
|
||||||
|
"window.zoomLevel": 0,
|
||||||
|
"liveshare.guestApprovalRequired": true,
|
||||||
|
"markdown.preview.fontSize": 16,
|
||||||
|
"editor.formatOnSave": false, // fuck this shit
|
||||||
|
"window.title": "${dirty}${activeEditorShort}@vscode", // edgy, todo: remove [Unsupported] somehow
|
||||||
|
// Zen mode stuff
|
||||||
|
"zenMode.hideTabs": true,
|
||||||
|
"zenMode.fullScreen": false,
|
||||||
|
"zenMode.centerLayout": false,
|
||||||
|
"zenMode.hideLineNumbers": false,
|
||||||
|
"zenMode.hideActivityBar": true,
|
||||||
|
"zenMode.hideStatusBar": true,
|
||||||
|
"zenMode.silentNotifications": true,
|
||||||
|
"zenMode.restore": true, // if quit in zen, open in zen
|
||||||
|
"editor.renderIndentGuides": false, // the funny tab things piss me off
|
||||||
|
"css.completion.completePropertyWithSemicolon": false, // would rather type out myself
|
||||||
|
"html.autoClosingTags": false, // would rather type out myself
|
||||||
|
"editor.renderWhitespace": "none", // remove funny space dots
|
||||||
|
"editor.useTabStops": false, // OH BOY Fuck this
|
||||||
|
"breadcrumbs.enabled": false, //directory listing, sometimes nice but i like it off
|
||||||
|
"window.menuBarVisibility": "toggle", // isn't that what the alt key is for?
|
||||||
|
"workbench.activityBar.visible": true,
|
||||||
|
"editor.minimap.enabled": false, // never liked this go begin with
|
||||||
|
"workbench.statusBar.visible": true, // sometimes nice, hidden in zen
|
||||||
|
"workbench.iconTheme": null, // looks nicer without icons
|
||||||
|
"workbench.colorCustomizations": {
|
||||||
|
"activityBar.background": "#031d09", // css doesn't change this one thing for some reason
|
||||||
|
"editor.background": "#031d09", // and this
|
||||||
|
"scrollbarSlider.background": "#031d09", // these hide scroll bar into background
|
||||||
|
"scrollbarSlider.activeBackground": "#031d09",
|
||||||
|
"scrollbarSlider.hoverBackground": "#031d09",
|
||||||
|
"editorGroup.emptyBackground": "#031d09",
|
||||||
|
"editorGroup.border": "#031d09", // this line is about as thing as my patience
|
||||||
|
"editorWidget.background": "#031d09", // hehe funny find
|
||||||
|
"tab.activeBackground": "#031d09",
|
||||||
|
"tab.inactiveBackground": "#031d09",
|
||||||
|
"editorGroupHeader.tabsBackground": "#031d09",
|
||||||
|
"editorGroupHeader.noTabsBackground": "#031d09",
|
||||||
|
"breadcrumbPicker.background": "#031d09",
|
||||||
|
"list.activeSelectionBackground": "#031d09",
|
||||||
|
"list.hoverBackground": "#031d09",
|
||||||
|
"settings.checkboxBackground": "#031d09",
|
||||||
|
"settings.dropdownBackground": "#031d09",
|
||||||
|
"settings.numberInputBackground": "#031d09",
|
||||||
|
"settings.textInputBackground": "#031d09",
|
||||||
|
"sideBar.background": "#031d09",
|
||||||
|
"sideBarSectionHeader.background": "#031d09",
|
||||||
|
"statusBar.background": "#031d09",
|
||||||
|
"titleBar.activeBackground": "#031d09",
|
||||||
|
"titleBar.inactiveBackground": "#031d09"
|
||||||
|
},
|
||||||
|
"files.associations": {
|
||||||
|
"*.HC": "c"
|
||||||
|
},
|
||||||
|
"editor.fontFamily": "Unifont, Consolas, 'Courier New', monospace",
|
||||||
|
"editor.fontSize": 16,
|
||||||
|
"[html]": {
|
||||||
|
"editor.formatOnSave": false
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue