Cleaning up setup

This commit is contained in:
Joachim Nielandt 2023-05-16 13:49:17 +02:00
parent 14e44eea95
commit aa2eaa35a2
7 changed files with 488 additions and 137 deletions

View File

@ -77,3 +77,5 @@
(package! yaml-mode) (package! yaml-mode)
; enable ripgrep ; enable ripgrep
(package! ripgrep) (package! ripgrep)
; enable dockerfile major mode
(package! dockerfile-mode)

View File

@ -35,8 +35,8 @@ set $ws7 "7:7"
set $ws8 "8:8" set $ws8 "8:8"
set $ws9 "9:9" set $ws9 "9:9"
set $ws10 "10:10" set $ws10 "10:10"
set $wsleft "11:" set $wsleft "11:"
set $wsright "12:" set $wsright "12:"
# automatically assign programs to workspace # automatically assign programs to workspace
# using workspace names here, otherwise doesn't work as expected # using workspace names here, otherwise doesn't work as expected
@ -108,7 +108,7 @@ bindsym $mod+c exec rofi -modi "clipboard:greenclip print" -show clipboard -run-
# do a nice menu with mode # do a nice menu with mode
# lock / logout / sleep / hibernate / restart / poweroff # lock / logout / sleep / hibernate / restart / poweroff
set $mode_system System  l e s鈴 h rﰇ sﮤ set $mode_system System  l e󰍃 s󰤄 h r 󰘶sﮤ
mode "$mode_system" { mode "$mode_system" {
bindsym l exec --no-startup-id ~/.config/i3/i3exit.sh lock, mode "default" bindsym l exec --no-startup-id ~/.config/i3/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/i3exit.sh logout, mode "default" bindsym e exec --no-startup-id ~/.config/i3/i3exit.sh logout, mode "default"

View File

@ -1,4 +1,7 @@
; ;Symbols
;▁▂▃▄▅▆▇█
;
;===================================================== ;=====================================================
; ;
; To learn more about how to configure Polybar ; To learn more about how to configure Polybar
@ -8,7 +11,7 @@
; ;
;===================================================== ;=====================================================
[colors] [colors]
# gruvbox colors ;gruvbox colors
dark0_hard = #1d2021 dark0_hard = #1d2021
dark0 = #282828 dark0 = #282828
dark0_soft = #32302f dark0_soft = #32302f
@ -47,10 +50,10 @@ faded_purple = #8f3f71
faded_aqua = #427b58 faded_aqua = #427b58
faded_orange = #af3a03 faded_orange = #af3a03
# want to get colors from xrdb / .Xresources? ;want to get colors from xrdb / .Xresources?
# background = ${xrdb:color0:#222} ;background = ${xrdb:color0:#222}
# bar-background = #00FFFFFF ;bar-background = #00FFFFFF
# ARGB ;ARGB
bar-background = #dd1d2021 bar-background = #dd1d2021
[bar/general] [bar/general]
@ -139,7 +142,7 @@ monitor = ${env:MONITOR:eDP-1}
;unused modules - mpd xbacklight backlight-acpi alsa ;unused modules - mpd xbacklight backlight-acpi alsa
modules-right = pulseaudio modules-right = pulseaudio
modules-center = player-mpris-tail modules-center = player-mpris-tail
modules-left = date info-hackspeed modules-left = date
padding-left = 2 padding-left = 2
padding-right = 2 padding-right = 2
@ -160,12 +163,12 @@ format-prefix = "%{T2}󱣾%{T-} "
format-prefix-foreground = ${colors.bright_green} format-prefix-foreground = ${colors.bright_green}
interval = 5 interval = 5
[module/info-hackspeed] ;[module/info-hackspeed]
type = custom/script ;type = custom/script
format-prefix = " " ;format-prefix = " "
format-prefix-foreground = ${colors.bright_green} ;format-prefix-foreground = ${colors.bright_green}
exec = ~/.config/polybar/polybar-scripts/info-hackspeed/info-hackspeed.sh ;exec = ~/.config/polybar/polybar-scripts/info-hackspeed/info-hackspeed.sh
tail = true ;tail = true
[module/obelisk-status] [module/obelisk-status]
type = custom/script type = custom/script
@ -195,8 +198,9 @@ label = %title:0:30:...%
[module/xkeyboard] [module/xkeyboard]
type = internal/xkeyboard type = internal/xkeyboard
blacklist-0 = num lock blacklist-0 = num lock
format-prefix = "%{T2}%{T-} " format-prefix = " "
format-prefix-foreground = ${colors.bright_green} format-prefix-foreground = ${colors.bright_green}
format-prefix-font = 2
;format-prefix-underline = ${colors.underline-keyboard} ;format-prefix-underline = ${colors.underline-keyboard}
; layout, number, name ; layout, number, name
label-layout = %layout% label-layout = %layout%
@ -218,8 +222,8 @@ format-prefix-foreground = ${colors.light0}
[module/filesystem] [module/filesystem]
type = internal/fs type = internal/fs
interval = 25
; Mountpoints to display
; mounts differ depending on the machine ; mounts differ depending on the machine
; need to include comments in each of the options: template swallows newlines ; need to include comments in each of the options: template swallows newlines
{{- if eq .chezmoi.hostname "dome" }} {{- if eq .chezmoi.hostname "dome" }}
@ -233,14 +237,83 @@ mount-1 = /mnt/ext4
{{ else if eq .chezmoi.hostname "jnielandt" -}} {{ else if eq .chezmoi.hostname "jnielandt" -}}
; only root ; only root
mount-0 = / mount-0 = /
{{ else if eq .chezmoi.hostname "nielanjo" -}}
; only root
mount-0 = /
{{- end }} {{- end }}
;label-mounted = %{F#0a81f5}%mountpoint%%{F-} %percentage_used%% ; Seconds to sleep between updates
;#b8bb26 ; Default: 30
label-mounted = %{F#b8bb26}%mountpoint%%{F-} %percentage_used%% interval = 10
; Display fixed precision values
; Default: false
fixed-values = true
; Spacing (number of spaces, pixels, points) between entries
; Default: 2
spacing = 4
; Default: 90
; New in version 3.6.0
warn-percentage = 75
; Available tags:
; <label-mounted> (default)
; <bar-free>
; <bar-used>
; <ramp-capacity>
format-mounted = <label-mounted>
format-mounted-prefix = "󰋊 "
format-mounted-prefix-foreground = ${colors.bright_green}
; Available tags:
; <label-unmounted> (default)
format-unmounted = <label-unmounted>
; Format used when mountpoint %percentage_used% reaches warn-percentage
; If not defined, format-mounted is used instead.
; Available tags:
; <label-warn>
; <bar-free>
; <bar-used>
; <ramp-capacity>
; New in version 3.6.0
; format-warn = <label-warn>
; Available tokens:
; %mountpoint%
; %type%
; %fsname%
; %percentage_free%
; %percentage_used%
; %total%
; %free%
; %used%
; Default: %mountpoint% %percentage_free%%
label-mounted = %mountpoint% %percentage_used%%
label-mounted-foreground = ${colors.bright_green} label-mounted-foreground = ${colors.bright_green}
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.faded_green} ; Available tokens:
; %mountpoint%
; Default: %mountpoint% is not mounted
label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.bright_orange}
; Available tokens:
; %mountpoint%
; %type%
; %fsname%
; %percentage_free%
; %percentage_used%
; %total%
; %free%
; %used%
; Default: %mountpoint% %percentage_free%%
; New in version 3.6.0
; label-warn = %mountpoint%: WARNING
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
@ -265,78 +338,129 @@ label-empty-padding = 2
; label-separator = | ; label-separator = |
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar ; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true pin-workspaces = true
; Show urgent workspaces regardless of whether the workspace is actually hidden
; by pin-workspaces.
;
; Default: false
; New in version 3.6.0
show-urgent = true
; This will split the workspace name on ':' ; This will split the workspace name on ':'
; Default: false ; Default: false
strip-wsnumbers = true strip-wsnumbers = true
;bright_red = #fb4934 ; Sort the workspaces by index instead of the default
;bright_green = #b8bb26 ; sorting that groups the workspaces by output
;bright_yellow = #fabd2f ; Default: false
;bright_blue = #83a598 index-sort = true
;bright_purple = #d3869b
;bright_aqua = #8ec07c
;bright_orange = #fe8019
;ws-icon-1 = 1:1;%{B#b58900}1%{B-}
;ws-icon-0 = 1:1;%{F#db4934}%{F-}
;ws-icon-1 = 2:2;%{F#b8bb26}%{F-}
;ws-icon-2 = 3:3;%{F#fabd2f}%{F-}
;ws-icon-3 = 4:4;%{F#83a598}%{F-}
;ws-icon-4 = 5:5;%{F#d3869b}%{F-}
;ws-icon-4 = 5:5;
;ws-icon-5 = 6:6;
;ws-icon-6 = 7:7;
;ws-icon-7 = 8:8;
;ws-icon-8 = 9:9;﬐
;ws-icon-9 = 10:10;
;ws-icon-10 = 11:;
;ws-icon-11 = 12:;
ws-icon-default = ﱤ
; mode menu styling ; Create click handler used to focus workspace
; Default: true
enable-click = true
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = true
; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-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
; Default: false
fuzzy-match = true
; ws-icon-[0-9]+ = <label>;<icon>
; NOTE: The <label> needs to match the name of the i3 workspace
; Neither <label> nor <icon> can contain a semicolon (;)
;ws-icon-0 = 1;a
;ws-icon-1 = 2;b
;ws-icon-2 = 3;c
;ws-icon-3 = 4;d
;ws-icon-4 = 5;♞
;ws-icon-default = ♟
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
; you must also define a ws-icon-5.
; NOTE: Icon will be available as the %icon% token inside label-*
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode% label-mode = %mode%
label-mode-padding = 1 label-mode-padding = 2
label-mode-foreground = ${colors.light0_hard}
label-mode-background = ${colors.dark2} label-mode-background = ${colors.dark2}
;label-mode-underline = ${colors.light2}
; can use: %icon% %name% %index
label-focused = "%name%"
label-unfocused = "·%name%"
label-visible = "·%name%"
label-urgent = "·%name%"
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %name%
label-focused-foreground = ${colors.bright_green} label-focused-foreground = ${colors.bright_green}
label-unfocused-foreground = ${colors.light0_hard} ;label-focused-background = ${colors.dark2}
label-visible-foreground = ${colors.neutral_green} ;label-focused-underline = #fba922
label-urgent-foreground = ${colors.bright_orange}
label-focused-padding = 1 label-focused-padding = 1
label-unfocused-padding = 1
label-visible-padding = 1
label-urgent-padding = 1
;label-focused = %icon% %name%
;label-focused = %index%
;label-focused-background = ${module/bspwm.label-focused-background}
;label-focused-underline = ${module/bspwm.label-focused-underline}
;label-focused-padding = ${module/bspwm.label-focused-padding}
;label-focused-background = ${colors.light1}
;label-focused-underline = ${colors.underline-i3-focused}
; unfocused = Inactive workspace on any monitor ; unfocused = Inactive workspace on any monitor
;label-unfocused = %index% ; Available tokens:
;label-unfocused-underline = ${colors.underline-i3-unfocused} ; %name%
;label-unfocused-padding = ${module/bspwm.label-occupied-padding} ; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-unfocused = %name%
label-unfocused-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-visible = %name%
;label-visible-underline = #555555
label-visible-foreground = ${colors.neutral_green}
label-visible-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-urgent = %index%
label-urgent-foreground = ${colors.bright_orange}
label-urgent-background = #bd2c40
label-urgent-padding = 1
; Separator in between workspaces
label-separator = ·
label-separator-padding = 0
label-separator-foreground = ${colors.light0_hard}
[module/mpd] [module/mpd]
@ -352,6 +476,7 @@ icon-next = 怜
label-song-maxlen = 25 label-song-maxlen = 25
label-song-ellipsis = true label-song-ellipsis = true
[module/xbacklight] [module/xbacklight]
type = internal/xbacklight type = internal/xbacklight
@ -373,19 +498,60 @@ bar-empty = ─
bar-empty-font = 2 bar-empty-font = 2
bar-empty-foreground = ${colors.col7} bar-empty-foreground = ${colors.col7}
[module/backlight-acpi] [module/backlight-acpi]
inherit = module/xbacklight inherit = module/xbacklight
type = internal/backlight type = internal/backlight
;card = intel_backlight ;card = intel_backlight
card = acpi_video0 card = acpi_video0
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2
;format-prefix = " " ; Seconds to sleep between updates
;format = <label> <ramp-coreload> ; Default: 1
format = <ramp-coreload> interval = 0.5
ramp-coreload-spacing = 0.6
; Default: 80
; New in version 3.6.0
warn-percentage = 95
; Available tags:
; <label> (default)
; <bar-load>
; <ramp-load>
; <ramp-coreload>
format = <label> <ramp-coreload>
; Format used when average CPU load (same as %percentage%) reaches warn-percentage
; If not defined, format is used instead.
; Available tags:
; <label-warn>
; <bar-load>
; <ramp-load>
; <ramp-coreload>
; New in version 3.6.0
; format-warn = <label-warn>
; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores
; %percentage-sum% - Cumulative load on all cores
; %percentage-cores% - load percentage for each core
; %percentage-core[1-9]% - load percentage for specific core
label = %percentage%%
; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores
; %percentage-sum% - Cumulative load on all cores
; %percentage-cores% - load percentage for each core
; %percentage-core[1-9]% - load percentage for specific core
; New in version 3.6.0
label-warn = %percentage%%
label-warn-foreground = ${colors.bright_red}
; Spacing (number of spaces, pixels, points) between individual per-core ramps
ramp-coreload-spacing = 0.8
ramp-coreload-0 = ▁ ramp-coreload-0 = ▁
ramp-coreload-1 = ▂ ramp-coreload-1 = ▂
ramp-coreload-2 = ▃ ramp-coreload-2 = ▃
@ -394,33 +560,139 @@ ramp-coreload-4 = ▅
ramp-coreload-5 = ▆ ramp-coreload-5 = ▆
ramp-coreload-6 = ▇ ramp-coreload-6 = ▇
ramp-coreload-7 = █ ramp-coreload-7 = █
format-prefix = " " ramp-coreload-foreground = ${colors.light0_soft}
; Prefix
format-prefix = " "
format-prefix-foreground = ${colors.bright_green} format-prefix-foreground = ${colors.bright_green}
;format-underline = #f90000 format-prefix-font = 2
;format-underline = ${colors.underline-cpu}
label = %percentage-cores%
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2
; Seconds to sleep between updates
; Default: 1
interval = 3
; Default: 90
; New in version 3.6.0
warn-percentage = 95
; Available tags:
; <label> (default)
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used>
; <bar-swap-free>
; <ramp-swap-used>
; <ramp-swap-free>
format = <label>
; Format used when RAM reaches warn-percentage
; If not defined, format is used instead.
; Available tags:
; <label-warn>
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used>
; <bar-swap-free>
; <ramp-swap-used>
; <ramp-swap-free>
; New in version 3.6.0
format-warn = <label-warn>
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %swap_total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
;label = %gb_used%/%gb_free%
label = %percentage_used%% %percentage_swap_used%%
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %swap_total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
; New in version 3.6.0
label-warn = %gb_used%/%gb_free%
; Only applies if <bar-used> is used
bar-used-indicator =
bar-used-width = 50
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = #444444
; Only applies if <ramp-used> is used
ramp-used-0 = ▁
ramp-used-1 = ▂
ramp-used-2 = ▃
ramp-used-3 = ▄
ramp-used-4 = ▅
ramp-used-5 = ▆
ramp-used-6 = ▇
ramp-used-7 = █
; Only applies if <ramp-free> is used
ramp-free-0 = ▁
ramp-free-1 = ▂
ramp-free-2 = ▃
ramp-free-3 = ▄
ramp-free-4 = ▅
ramp-free-5 = ▆
ramp-free-6 = ▇
ramp-free-7 = █
format-prefix = "󰍛 " format-prefix = "󰍛 "
format-prefix-font = 2 format-prefix-font = 2
format-prefix-foreground = ${colors.bright_green} format-prefix-foreground = ${colors.bright_green}
;format-underline = #4bffdc
;format-underline = ${colors.underline-memory}
label = %percentage_used%% %percentage_swap_used%%
; remove this is you don't want a bar
; format = <label> <bar-used>
; bar-used-indicator =
; bar-used-width = 10
; bar-used-foreground-0 = ${colors.bright_green}
; bar-used-foreground-1 = ${colors.neutral_green}
; bar-used-foreground-2 = ${colors.neutral_orange}
; bar-used-foreground-3 = ${colors.bright_orange}
; bar-used-fill = ▐
; bar-used-empty = ▐
; bar-used-empty-foreground = ${colors.dark2}
[module/updates-pacman] [module/updates-pacman]
type = custom/script type = custom/script
@ -525,8 +797,9 @@ label-connected = %essid% 󰄼%downspeed:3% 󰄿%upspeed:3%
label-connected-foreground = #eefafa label-connected-foreground = #eefafa
; Default: (none) ; Default: (none)
label-disconnected = not connected label-disconnected = 󰤭
label-disconnected-foreground = #66ffff label-disconnected-foreground = ${colors.bright_red}
label-disconnected-font = 2
; Default: (none) ; Default: (none)
label-packetloss = %essid% label-packetloss = %essid%
@ -534,10 +807,10 @@ label-packetloss-foreground = #eefafafa
; Only applies if <ramp-signal> is used ; Only applies if <ramp-signal> is used
ramp-signal-0 = 󰤫 ramp-signal-0 = 󰤫
ramp-signal-1 = 󰤟 ramp-signal-1 = 󰤯
ramp-signal-2 = 󰤢 ramp-signal-2 = 󰤟
ramp-signal-3 = 󰤥 ramp-signal-3 = 󰤢
ramp-signal-4 = 󰤨 ramp-signal-4 = 󰤥
ramp-signal-5 = 󰤨 ramp-signal-5 = 󰤨
ramp-signal-font = 2 ramp-signal-font = 2
ramp-signal-foreground = ${colors.bright_green} ramp-signal-foreground = ${colors.bright_green}
@ -588,35 +861,76 @@ label-foreground = ${colors.light0_hard}
;format-underline = ${colors.underline-date} ;format-underline = ${colors.underline-date}
label = "%date% %time%" label = "%date% %time%"
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
; If not, uses default sink
; sink = alsa_output.pci-0000_12_00.3.analog-stereo
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = true
; Interval for volume increase/decrease (in percent points)
; Default: 5
interval = 5
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
;format-volume = <ramp-volume> <label-volume>
format-volume = <label-volume> <bar-volume> format-volume = <label-volume> <bar-volume>
; Available tags:
; <label-muted> (default)
; <ramp-volume>
; <bar-volume>
;format-muted = <label-muted>
; Available tokens:
; %percentage% (default)
; %decibels%
label-volume =  %percentage%% label-volume =  %percentage%%
label-volume-foreground = ${colors.bright_green} label-volume-foreground = ${colors.bright_green}
;
; the muted symbol comes from siji font (check the 'view.sh' script for altcodes) ; Available tokens:
; %percentage% (default)
; %decibels%
label-muted =  label-muted = 
;label-muted-foreground = #66
label-muted-foreground = ${colors.faded_green} label-muted-foreground = ${colors.faded_green}
bar-volume-width = 10 ; Only applies if <ramp-volume> is used
bar-volume-foreground-0 = #b8bb26 ramp-volume-0 = 󰕿
bar-volume-foreground-1 = #b8bb26 ramp-volume-1 = 󰖀
bar-volume-foreground-2 = #b8bb26 ramp-volume-2 = 󰕾
bar-volume-foreground-3 = #b8bb26
bar-volume-foreground-4 = #b8bb26 ; Right and Middle click
bar-volume-foreground-5 = #fe8019 click-right = pavucontrol
bar-volume-foreground-6 = #fb4934 ; click-middle =
bar-volume-gradient = false
bar-volume-indicator = | ;
bar-volume-indicator-font = 2 ;; the muted symbol comes from siji font (check the 'view.sh' script for altcodes)
bar-volume-fill =  ;
bar-volume-fill-font = 2 ;bar-volume-width = 10
;bar-volume-empty = ─ ;bar-volume-foreground-0 = #b8bb26
bar-volume-empty =  ;bar-volume-foreground-1 = #b8bb26
bar-volume-empty-font = 2 ;bar-volume-foreground-2 = #b8bb26
bar-volume-empty-foreground = ${colors.faded_green} ;bar-volume-foreground-3 = #b8bb26
;bar-volume-foreground-4 = #b8bb26
;bar-volume-foreground-5 = #fe8019
;bar-volume-foreground-6 = #fb4934
;bar-volume-gradient = false
;bar-volume-indicator = |
;bar-volume-indicator-font = 2
;bar-volume-fill = 
;bar-volume-fill-font = 2
;;bar-volume-empty = ─
;bar-volume-empty = 
;bar-volume-empty-font = 2
;bar-volume-empty-foreground = ${colors.faded_green}
[module/alsa] [module/alsa]
type = internal/alsa type = internal/alsa

View File

@ -22,7 +22,8 @@ sudo pacman -Sy \
calc \ calc \
zsh \ zsh \
rofi \ rofi \
dmenu dmenu \
bind
# these are doom (emacs) dependencies # these are doom (emacs) dependencies
sudo pacman -Sy \ sudo pacman -Sy \

View File

@ -35,3 +35,8 @@ Plug 'tpope/vim-commentary'
"" Map \b to toggle the breakpoint on the current line "" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint) "map \b <Action>(ToggleLineBreakpoint)
set ideajoin set ideajoin
" Set relative numbers in gutter
set relativenumber
" Set the current line number in gutter
set number

View File

@ -203,7 +203,8 @@
# Red prompt symbol if the last command failed. # Red prompt symbol if the last command failed.
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=$gruvbox_bright_red typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=$gruvbox_bright_red
# Default prompt symbol. # Default prompt symbol.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION=' 󱡬' # 󱡬
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION=' '
# Prompt symbol in command vi mode. # Prompt symbol in command vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION=' ' typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION=' '
# Prompt symbol in visual vi mode. # Prompt symbol in visual vi mode.

View File

@ -27,8 +27,8 @@ ZSH=/usr/share/oh-my-zsh/
# Zsh history # Zsh history
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=1000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=100000
# Zsh options # Zsh options
# Use invalid command as a directory if applicable and cd to it # Use invalid command as a directory if applicable and cd to it
@ -83,7 +83,35 @@ if ! zgenom saved; then
zgenom save zgenom save
fi fi
# Aliases
alias rm="rm -v"
alias vi="vim"
alias cp="cp -v"
alias mv="mv -v"
alias ls="ls $LS_OPTIONS -hFtr"
alias ll="ls $LS_OPTIONS -lAhFtr"
alias ccat="pygmentize -O style=monokai -f 256 -g"
alias dig="dig +nocmd any +multiline +noall +answer"
alias prettyjson='python -m json.tool'
# aliases to quickly switch between two keyboard layouts
#alias aoeu="setxkbmap us"
#alias asdf="setxkbmap dvorak"
disable -r time # disable shell reserved word
alias time='time -p ' # -p for POSIX output
# git shortcuts - probably supplanted by the zsh git plugin, to check
# alias gac="git add -A && git commit -a"
# check for the docker plugin of zsh?
# alias dddu="docker-compose down && docker-compose up -d"
# yank the last command from history into the clipboard
alias yk="cat ~/.zsh_history | tail -n 2 | head -n 1 | cut -d ';' -f 2- | xclip -selection clipboard"
# add space after sudo to make it consider aliases, other 'sudo vi' would fail for not aliasing to vim
alias sudo="sudo "
# PATH modifications
export PATH=$HOME/.config/emacs/bin:$PATH
export PATH=/home/joachim/.local/share/gem/ruby/3.0.0/bin:$PATH
# add my own scripts to the path
export PATH=$HOME/scripts:$PATH
# this supposedly fixes the slow pasting into shell # this supposedly fixes the slow pasting into shell
# zstyle ':bracketed-paste-magic' active-widgets '.self-*' # zstyle ':bracketed-paste-magic' active-widgets '.self-*'