Compare commits

3 Commits

Author SHA1 Message Date
ackman678
1589074fc7 check battery update 2025-11-21 15:45:31 -05:00
ackman678
a388c87a44 nano fun 2025-07-17 10:42:50 -04:00
ackman678
c0c3dc1b5b nanorc 2025-05-13 16:48:02 -04:00
7 changed files with 30 additions and 27 deletions

View File

@@ -10,8 +10,8 @@
# fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
#exec sway
exec sway -d 2> ~/sway.log
exec sway
#exec sway -d 2> ~/sway.log
fi
# if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then

20
.bashrc
View File

@@ -7,7 +7,7 @@
# add from /etc/bash.bashrc default with fix for alacritty window title bars
case ${TERM} in
xterm*|rxvt*|Eterm|alacritty|aterm|foot|kterm|gnome*)
xterm*|rxvt*|Eterm|alacritty|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
@@ -45,7 +45,7 @@ alias la='ls -A'
alias ll='ls -lah'
alias tree='tree -CL 2'
alias nv='nvim'
export EDITOR=nano
export EDITOR=nvim
export VISUAL=wm_spawn
alias feh='feh --scale-down'
@@ -70,19 +70,14 @@ fi
#---begin fzf setup---
#fast fuzzy file searching with fzf
#fzf kbd shortcuts: <alt-c>, <ctrl-t>, <ctrl-p>
if [[ -e /usr/share/fzf/key-bindings.bash ]]; then
source /usr/share/fzf/key-bindings.bash
source /usr/share/fzf/completion.bash
fi
#fzf kbd shortcuts: <alt-c>, <ctrl-r>, <ctrl-t>, <ctrl-p>
source /usr/share/fzf/key-bindings.bash
source /usr/share/fzf/completion.bash
#use ripgrep with fzf
#export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
#export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
#bat instead of cat
#fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
#or use fd with fzf
# export FZF_DEFAULT_COMMAND="fd --type file --color=always"
# export FZF_DEFAULT_COMMAND='fd --type file --hidden --color=always --follow --exclude .git'
@@ -99,7 +94,8 @@ bind -x '"\C-p": fzfcmd;'
#setup bash history
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
#export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
export HISTIGNORE="ls*:cd*:exit:ps*:history:gpg*:start*"
# export HISTSIZE=4096
export HISTSIZE=-1 #make unlimited
# export HISTSIZE=0 #disable history

View File

@@ -30,9 +30,9 @@ order += "wireless _first_"
order += "ethernet _first_"
#order += "run_watch DHCP"
#order += "path_exists ovpn"
#order += "path_exists wgvpn"
order += "path_exists wgvpn"
order += "path_exists wg0"
#order += "battery all"
order += "battery all"
order += "cpu_temperature 0"
order += "load"
order += "tztime local"
@@ -84,7 +84,6 @@ run_watch DHCP {
#update the following device path for temp1_input as needed
cpu_temperature 0 {
format = "%degrees °C"
#path = "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp2_input"
path = "/sys/class/thermal/thermal_zone0/temp"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp2_input"
}

View File

@@ -17,8 +17,8 @@ set $alt Mod1
# Your preferred terminal emulator
# set $term urxvt
#set $term alacritty
set $term foot
set $term alacritty
# set $term foot
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
@@ -54,11 +54,14 @@ font pango:monospace 8
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# output * bg #000000 solid_color
# output * bg #333333 solid_color
# output * bg #0000FF solid_color
output * bg #003151 solid_color
#Apple trackpad input device id:
#input "1452:657:bcm5974" {
# tap enabled
#}
input "1452:657:bcm5974" {
tap enabled
}
#typematic delay and rate
input type:keyboard {
@@ -315,7 +318,7 @@ focus_follows_mouse no
#seat seat0 xcursor_theme Adwaita 12
#hide mouse cursor. Either after msec of inactivity or whenever typing
#seat seat0 hide_cursor 2000
seat seat0 hide_cursor 2000
# seat seat0 hide_cursor when-typing enable
#Can use the following with custom workspace save files to reload layouts
@@ -324,5 +327,5 @@ focus_follows_mouse no
include /etc/sway/config.d/*
# exec xrdb -load ~/.Xresources
# exec mako
#exec dunst
exec dunst
#exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"

View File

@@ -4,3 +4,6 @@ Description=check-battery
[Service]
ExecStart=%h/bin/check-battery.sh
[Install]
WantedBy=check-battery.timer
; WantedBy=timers.target

View File

@@ -1 +1,3 @@
include /usr/share/nano/*.nanorc
set regexp
set nowrap

4
.vimrc
View File

@@ -396,7 +396,7 @@ endif
" Set color manually
" colorscheme base16-gruvbox-dark-hard
colorscheme base16-atelier-dune-light
colorscheme base16-gruvbox-dark-hard
"gvim options
" if &t_Co > 2 || has("gui_running")
@@ -409,7 +409,7 @@ if has("gui_running")
" default is go=aegimrLtT
set go=aegLt
":set go+=m or go-=m to toggle menu
" colorscheme base16-atelier-dune-light
" colorscheme base16-gruvbox-dark-hard
" colorscheme base16-gruvbox-dark-hard
autocmd VimEnter * Goyo
autocmd VimEnter * Limelight0.8