From ec27acebe85fe696829c7df07014676d7470c8e4 Mon Sep 17 00:00:00 2001 From: philw Date: Fri, 16 Aug 2024 15:50:41 +0200 Subject: Update dots --- brightness | 1 + calcurse/conf | 33 +++++++++++++++++++++++++++++++++ shell/bash/.bash_profile | 2 ++ shell/bash/.bashrc | 43 +++++++++++++++---------------------------- wallpaper.jpg | Bin 406734 -> 38362 bytes x/.Xresources | 21 ++++++--------------- x/.xinitrc | 7 ++++++- x/.xprofile | 3 ++- zathura/zathurarc | 2 -- 9 files changed, 65 insertions(+), 47 deletions(-) create mode 100644 brightness create mode 100644 calcurse/conf mode change 100755 => 100644 wallpaper.jpg diff --git a/brightness b/brightness new file mode 100644 index 0000000..78eb67c --- /dev/null +++ b/brightness @@ -0,0 +1 @@ +75 diff --git a/calcurse/conf b/calcurse/conf new file mode 100644 index 0000000..0b03a56 --- /dev/null +++ b/calcurse/conf @@ -0,0 +1,33 @@ +appearance.calendarview=monthly +appearance.compactpanels=no +appearance.defaultpanel=calendar +appearance.layout=1 +appearance.headerline=yes +appearance.eventseparator=yes +appearance.dayseparator=yes +appearance.emptyline=yes +appearance.emptyday=-- +appearance.notifybar=yes +appearance.sidebarwidth=0 +appearance.theme=magenta on default +appearance.todoview=hide-completed +appearance.headingpos=right-justified +daemon.enable=no +daemon.log=no +format.inputdate=1 +format.notifydate=%a %F +format.notifytime=%T +format.outputdate=%D +format.dayheading=%B %e, %Y +general.autogc=no +general.autosave=yes +general.confirmdelete=yes +general.confirmquit=yes +general.firstdayofweek=monday +general.multipledays=yes +general.periodicsave=0 +general.systemevents=yes +notification.command=printf '\a' +notification.notifyall=flagged-only +notification.warning=300 +format.appointmenttime=%H:%M diff --git a/shell/bash/.bash_profile b/shell/bash/.bash_profile index aeac56a..f702739 100644 --- a/shell/bash/.bash_profile +++ b/shell/bash/.bash_profile @@ -4,3 +4,5 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc . "$HOME/.cargo/env" + +echo 75 > /sys/class/backlight/intel_backlight/brightness diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc index b921287..8da3835 100644 --- a/shell/bash/.bashrc +++ b/shell/bash/.bashrc @@ -1,4 +1,3 @@ - parse_git_branch() { local branch="" branch=$(git branch 2> /dev/null | sed -n '/^[^*]/d;s/* \(.*\)/\1/p') @@ -11,14 +10,18 @@ parse_git_branch() { echo "$branch" } + update_prompt() { PS1="\[\e[31m\][\[\e[33m\]\u\[\e[32m\]@\[\e[34m\]\h \[\e[35m\]\w\[\e[31m\]]\[\e[35m\] \[\e[33m\]\$(parse_git_branch)\[\e[34m\]# \[\e[0m\]" } PROMPT_COMMAND="update_prompt" - -eval "$(zoxide init bash)" +if [ -z "$XDG_RUNTIME_DIR" ]; then + XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" + export XDG_RUNTIME_DIR +fi export XDG_DATA_HOME="$HOME"/.local/share export XDG_CONFIG_HOME="$HOME"/.config @@ -40,6 +43,7 @@ export ANDROID_HOME=$HOME/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/platform-tools export AWT_TOOLKIT=MToolkit +export _JAVA_AWT_WM_NONREPARENTING=1 export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export GEM="/home/fw/.local/share/gem/ruby/3.0.0/bin" @@ -47,31 +51,22 @@ alias acl="arduino-cli" alias acl="arduino-cli compile" alias aclbl="arduino-cli board list" -alias ls="eza -l --icons --color=always" -alias l="eza -l --icons --color=always" -alias ls="eza -l --icons --color=always" -alias la="eza -la --icons --color=always" -alias ll="eza -l --color=always --group-directories-first" -alias lt="eza -T --color=always --group-directories-first" +alias get_idf='. $HOME/esp/esp-idf/export.sh' + +alias l='ls -la --color=auto' +alias la='ls -la --color=auto' +alias ls='ls --color=auto' +alias ..='cd ..' + alias v="nvim" alias c="clear" -alias e="exit" alias j="joshuto" -alias g="grep" -alias g="rg" alias zl="zellij" alias h="htop" alias n="neofetch" alias poweroff="doas /usr/bin/poweroff" alias reboot="doas /usr/bin/reboot" -alias latexmk="latex-mk" - -alias orphans="doas pacman -Rcns $(pacman -Qqdt)" - -alias pf="prettier --write ." - - alias gts="git status" alias gta="git add ." alias gtc="git commit -m" @@ -86,17 +81,9 @@ if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then # exec dbus-run-session run_something &> /dev/null fi -case ":$PATH:" in - *":$GEM:"*) ;; - *) export PATH="$GEM:$PATH" ;; -esac - - # If not running interactively, don't do anything [[ $- != *i* ]] && return -. "$HOME/.cargo/env" -# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin -# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin export GPG_TTY=$(tty) +export PATH=$PATH:$HOME/.local/bin diff --git a/wallpaper.jpg b/wallpaper.jpg old mode 100755 new mode 100644 index e1cc18b..271a177 Binary files a/wallpaper.jpg and b/wallpaper.jpg differ diff --git a/x/.Xresources b/x/.Xresources index c2dd847..f1e4504 100644 --- a/x/.Xresources +++ b/x/.Xresources @@ -8,7 +8,7 @@ dwm.showbar: 0 dwm.font: FiraCode-12; -#define base00 #0c0d0e +#define base00 #000c18 #define base01 #2e2f30 #define base02 #515253 #define base03 #737475 @@ -16,12 +16,12 @@ dwm.font: FiraCode-12; #define base05 #b7b8b9 #define base06 #dadbdc #define base07 #fcfdfe -#define base08 #e31a1c +#define base08 #9966b8 #define base09 #e6550d -#define base0A #dca060 -#define base0B #31a354 -#define base0C #80b1d3 -#define base0D #3182bd +#define base0A #ffeebb +#define base0B #22aa44 +#define base0C #223355 +#define base0D #225588 #define base0E #756bb1 #define base0F #b15928 @@ -50,12 +50,3 @@ dwm.font: FiraCode-12; *.color13: base0E *.color14: base0C *.color15: base07 - -! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt), -! use 'shell' template to set these if necessary -*.color16: base09 -*.color17: base0F -*.color18: base01 -*.color19: base02 -*.color20: base04 -*.color21: base06 diff --git a/x/.xinitrc b/x/.xinitrc index a5aeb1f..641c449 100644 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -30,7 +30,12 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then done unset f fi -/usr/local/bin/pipewire-start.sh & + +while xsetroot -name "`wpctl get-volume @DEFAULT_AUDIO_SINK@` | Battery: `cat /sys/class/power_supply/BAT0/capacity`% | `date '+%d.%m.%Y (%a) %T'`" +do + sleep 5 +done & + dbus-update-activation-environment --all xsetroot -name " " & ssh-agent dwm diff --git a/x/.xprofile b/x/.xprofile index 0e7d089..e484486 100644 --- a/x/.xprofile +++ b/x/.xprofile @@ -9,7 +9,8 @@ done >/dev/null 2>&1 xrandr --dpi 96 xbacklight -set 2 setxkbmap pl - feh --bg-scale ~/repos/rice/wallpaper.jpg & +pipewire & +feh --bg-scale ~/repos/rice/wallpaper.jpg & picom -b & [ -n "$xrdbpid" ] && wait "$xrdbpid" diff --git a/zathura/zathurarc b/zathura/zathurarc index 8339747..2d12705 100644 --- a/zathura/zathurarc +++ b/zathura/zathurarc @@ -18,8 +18,6 @@ set scroll-step 100 set window-title-home-tilde 1 set statusbar-home-tilde 1 set window-title-basename 1 -#zoom settings -#set zoom-min 10 set guioptions 1 # bookmarks settings -- cgit v1.2.3