aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2023-09-16 16:51:04 -0600
committerjason2023-09-16 16:51:04 -0600
commit02e04d2d142d9e43881a2f893fcdeec19b461626 (patch)
treed6f805cbab1aea5dd27298d1f1c82d3ab360947f
parent9ce765451ed177619a7220ea8231462306956a12 (diff)
downloaddotfiles-02e04d2d142d9e43881a2f893fcdeec19b461626.tar.gz
dotfiles-02e04d2d142d9e43881a2f893fcdeec19b461626.zip
openbsd updates
-rw-r--r--bash/.bashrc6
-rw-r--r--i3/.config/i3/config12
-rw-r--r--i3/.i3status.conf16
-rw-r--r--kitty/.config/kitty/kitty.conf2
-rw-r--r--xorg/.Xmodmap5
-rw-r--r--xorg/.Xresources2
6 files changed, 27 insertions, 16 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 0684e75..364d243 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -153,7 +153,7 @@ if [ -x /opt/homebrew/bin/pyenv ]; then
153 eval "$(pyenv init --path)" 153 eval "$(pyenv init --path)"
154 eval "$(pyenv init -)" 154 eval "$(pyenv init -)"
155fi 155fi
156if [ -x /usr/local/bin/pyenv ]; then 156if [[ -x /usr/local/bin/pyenv || -x $HOME/bin/pyenv ]]; then
157 # FreeBSD, probably linux 157 # FreeBSD, probably linux
158 eval "$(pyenv init -)" 158 eval "$(pyenv init -)"
159fi 159fi
@@ -181,7 +181,7 @@ fi
181[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ 181[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
182 source /usr/local/share/bash-completion/bash_completion.sh 182 source /usr/local/share/bash-completion/bash_completion.sh
183 183
184if [[ $OS_NAME == "FreeBSD" ]]; then 184if [[ $OS_NAME == "FreeBSD" || $OS_NAME == "OpenBSD" ]]; then
185 export XDG_RUNTIME_DIR=/var/run/user/`id -u` 185 export XDG_RUNTIME_DIR=/var/run/user/`id -u`
186fi 186fi
187####### 187#######
@@ -234,7 +234,7 @@ export HISTCONTROL="ignoredups"
234export HISTIGNORE="ls:cd" 234export HISTIGNORE="ls:cd"
235 235
236# Aliases 236# Aliases
237alias ls='ls --color' 237#alias ls='ls --color'
238#alias fixfileperm='find /music -type f -exec chmod 0644 {} \;' 238#alias fixfileperm='find /music -type f -exec chmod 0644 {} \;'
239#alias cleanremotebranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin' 239#alias cleanremotebranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin'
240alias ducks='du -cks * |sort -rn |head -11' 240alias ducks='du -cks * |sort -rn |head -11'
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 59c1f9f..19a60cd 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -161,9 +161,15 @@ bindsym $mod+r mode "resize"
161# system76: apt install brightnessctl 161# system76: apt install brightnessctl
162# bindsym XF86MonBrightnessDown 162# bindsym XF86MonBrightnessDown
163# bindsym XF86MonBrightnessUp 163# bindsym XF86MonBrightnessUp
164bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2% 164
165bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2% 165# For OpenBSD
166bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle #&& pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $( pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 ) + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' > $SWAYSOCK.wob 166bindsym XF86AudioLowerVolume exec sndioctl output.level=-0.5
167bindsym XF86AudioRaiseVolume exec sndioctl output.level=+0.5
168bindsym XF86AudioMute exec sndioctl output.mute=!
169# For Linux/PulseAudio:
170#bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%
171#bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%
172#bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle #&& pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $( pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 ) + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' > $SWAYSOCK.wob
167bindsym $alt+Shift+4 exec "flameshot gui" 173bindsym $alt+Shift+4 exec "flameshot gui"
168bindsym $alt+$ctrl+v exec "diodon" 174bindsym $alt+$ctrl+v exec "diodon"
169 175
diff --git a/i3/.i3status.conf b/i3/.i3status.conf
index 9af020b..5a91729 100644
--- a/i3/.i3status.conf
+++ b/i3/.i3status.conf
@@ -1,15 +1,19 @@
1general { 1general {
2# output_format = "xmobar" 2# output_format = "xmobar"
3 output_format = "i3bar"
4 color_good = "#468f3d"
5 color_degraded = "#E5871F"
6 color_bad = "#C83839"
3 colors = true 7 colors = true
4 interval = 5 8 interval = 5
5} 9}
6 10
7order += "ipv6" 11# order += "ipv6"
8order += "disk /" 12# order += "disk /"
9order += "run_watch DHCP" 13# order += "run_watch DHCP"
10order += "run_watch VPN" 14order += "run_watch VPN"
11order += "wireless _first_" 15order += "wireless _first_"
12order += "ethernet _first_" 16# order += "ethernet _first_"
13order += "battery 0" 17order += "battery 0"
14order += "load" 18order += "load"
15order += "volume master" 19order += "volume master"
@@ -30,10 +34,10 @@ ethernet _first_ {
30battery 0 { 34battery 0 {
31 format = "%status %percentage %remaining" 35 format = "%status %percentage %remaining"
32 format_down = "No battery" 36 format_down = "No battery"
33 status_chr = " CHR" 37 status_chr = "🔌 CHR"
34 status_bat = "🔋 BAT" 38 status_bat = "🔋 BAT"
35 status_unk = "? UNK" 39 status_unk = "? UNK"
36 status_full = " FULL" 40 status_full = "🔌 FULL"
37 path = "/sys/class/power_supply/BAT%d/uevent" 41 path = "/sys/class/power_supply/BAT%d/uevent"
38 low_threshold = 10 42 low_threshold = 10
39} 43}
diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf
index f8bf685..33fec64 100644
--- a/kitty/.config/kitty/kitty.conf
+++ b/kitty/.config/kitty/kitty.conf
@@ -35,7 +35,7 @@ bold_italic_font Iosevka Comfy Bold Italic
35#: italic_font Operator Mono Book Italic 35#: italic_font Operator Mono Book Italic
36#: bold_italic_font Operator Mono Medium Italic 36#: bold_italic_font Operator Mono Medium Italic
37 37
38font_size 12.0 38font_size 9.0
39 39
40#: Font size (in pts) 40#: Font size (in pts)
41 41
diff --git a/xorg/.Xmodmap b/xorg/.Xmodmap
index ee2ded6..68820aa 100644
--- a/xorg/.Xmodmap
+++ b/xorg/.Xmodmap
@@ -3,5 +3,6 @@ keycode 66 = Control_L
3add Control = Control_L 3add Control = Control_L
4 4
5! Disable mouse back (6) and mouse forward (7) 5! Disable mouse back (6) and mouse forward (7)
6! for fm 6! for fm (Commented out because 11 and 12 do not
7pointer = 1 2 3 4 5 0 0 8 9 10 11 12 7! work in OpenBSD, but neither does FM
8! pointer = 1 2 3 4 5 0 0 8 9 10 11 12
diff --git a/xorg/.Xresources b/xorg/.Xresources
index f35da8d..35b84f3 100644
--- a/xorg/.Xresources
+++ b/xorg/.Xresources
@@ -1,4 +1,4 @@
1Xft.dpi: 96 1Xft.dpi: 128
2! Xft.dpi: 192 2! Xft.dpi: 192
3Xcursor.size: 16 3Xcursor.size: 16
4Xft.lcdfilter: lcddefault 4Xft.lcdfilter: lcddefault