better polybar, remove nm-apply from i3, some vimrc stuff

This commit is contained in:
clint 2022-08-24 15:47:56 -05:00
parent 3390ca455e
commit e2f1e4ef36
4 changed files with 61 additions and 38 deletions

View File

@ -26,13 +26,13 @@ exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
@ -247,14 +247,14 @@ set $bar-inactive_workspace #755B69
#}
# set background on startup
set $wallpaper ~/Pictures/wallpapers/red_trees.jpg
set $wallpaper ~/Pictures/wallpapers/ocean_steps.jpg
exec --no-startup-id feh --bg-fill $wallpaper
# turn picom on on start up
exec_always --no-startup-id picom &
# turn off borders (required for i3-gaps)
for_window [class=".*"] border pixel 1
for_window [class=".*"] border pixel 2
# gaps
gaps inner 10
@ -268,7 +268,7 @@ set $bd-indicator #ffffff
# colorclass border bg text indicator child_border
client.focused $bd-color #111111 #ffffff $bd-indicator $bd-color
client.focused_inactive $bd-color #111111 #ffffff #333333 #333333
client.focused_inactive $bd-color #111111 #ffffff #333333 #111111
client.unfocused $bd-color #111111 #ffffff #333333 #333333
# lock screen

View File

@ -0,0 +1,2 @@
active-opacity = 1;
inactive-opacity = 0.8;

View File

@ -20,32 +20,44 @@
[colors]
background = #0B0A07
background-alt = #0B0A07
background-inactive = #4A4430
foreground = #BBCEA8
foreground-alt = #E3D87E
primary = #ffb52a
secondary = #e60053
underline = #F0EC57
background-inactive = #0B0A07
foreground = #cccccc
foreground-alt = #69caf0
;primary = #69caf0
;secondary = #e60053
underline-active = #69caf0
underline-inactive = #0B0A07
alert = #bd2c40
; transparent
[colors2]
background = #90553555
background-alt = #90553555
background-inactive = #90755B69
foreground = #000000
foreground-alt = #fff
primary = #ffb52a
secondary = #e60053
background = #99000000
background-alt = #99000000
background-inactive = #30000000
foreground = #ffffff
foreground-alt = #ffffff
primary = #ffffff
secondary = #000000
alert = #bd2c40
; grey
[colors3]
background = #dddddd
background-alt = #dddddd
background-inactive = #50eeeeee
foreground = #111111
foreground-alt = #111111
primary = #dddddd
secondary = #dddddd
alert = #bd2c40
[bar/main]
;monitor = ${env:MONITOR:HDMI-1}
monitor = ${env:MONITOR:HDMI-0}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
radius = 0.0
radius = 7
fixed-center = false
separator = |
@ -55,11 +67,11 @@ foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-size = 1
border-color = #00000000
padding-left = 0
padding-right = 2
padding-left = 3px
padding-right = 3px
module-margin-left = 1
module-margin-right = 2
@ -102,26 +114,27 @@ ws-icon-8 = 9;九
ws-icon-9 = 0;十
label-mode-padding = 1
label-mode-foreground = #000
label-mode-background = ${colors.primary}
;label-mode-foreground = #000
;label-mode-background = ${colors.underline-active}
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-background = ${colors.background-alt}
label-focused-foreground = ${colors.foreground-alt}
label-focused-underline= ${colors.primary}
label-focused-foreground = ${colors.foreground}
label-focused-underline= ${colors.underline-active}
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-background = ${colors.background-inactive}
label-unfocused-underline= ${colors.primary}
label-unfocused-foreground = ${colors.foreground}
label-unfocused-underline= ${colors.underline-inactive}
label-unfocused-padding = 1
; visible = Active workspace on unfocused monitor
label-visible = %icon%
label-visible-background = ${self.label-focused-background}
label-visible-foreground = ${colors.foreground-alt}
label-visible-foreground = ${colors.foreground}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
@ -139,14 +152,12 @@ format-prefix-foreground = ${colors.foreground-alt}
[module/filesystem]
type = internal/fs
interval = 60
interval = 3600
mount-0 = /
mount-1 = /home
label-mounted = %{A1:alacritty --hold -e df -h:}  %mountpoint%: %percentage_used%% %{A}
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
;label-unmounted = %mountpoint% not mounted
;label-unmounted-foreground = ${colors.foreground-alt}
format-mounted-prefix =
format-mounted-prefix-foreground = ${colors.foreground-alt}
label-mounted = %{A1:alacritty --hold -e df -h:} %mountpoint%: %percentage_used%% %{A}
[module/cpu]
type = internal/cpu
@ -161,7 +172,7 @@ type = internal/xwindow
format-background = ${colors.background-alt}
format-foreground = ${colors.foreground}
format-padding = 2
label-underline = ${colors.primary}
label-underline = ${colors.underline-active}
label-maxlen = 30
[module/memory]
@ -169,7 +180,7 @@ type = internal/memory
interval = 10
warn-percentage = 95
format = <label>
label = RAM %gb_used%/%gb_total%
label = RAM %percentage_used%%
bar-used-width = 50
bar-used-indicator =
bar-used-fill =
@ -191,7 +202,7 @@ type = custom/script
exec = ~/.scripts/i3_weather.sh
interval = 3600
click-left = alacritty --hold -e curl -Ss http://wttr.in
;format-prefix = W
format-prefix = W
format-prefix-foreground = ${colors.foreground-alt}
[module/finance]

View File

@ -46,3 +46,13 @@ map [b :bp<CR>
map ]b :bn<CR>
map db :bd<CR>
" Toggle Nerd tree
map <F4> :NERDTreeToggle<CR>
" Save, Save and quit
map <F1> :w<CR>
map <F2> :wq<CR>
" Lint
autocmd FileType python map <buffer> gl :w<CR>:exec '!python -m black' shellescape(@%, 1)<CR>