dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit a1e1f044a02fb640895b2e4f4a74b7d43c4f9ec2
parent d50d01ff686fc9ae7bf919757244edbef212e944
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Tue,  6 Aug 2024 18:25:09 -0400

moving back to xorg.

Diffstat:
A.config/dunst/dunstrc | 23+++++++++++++++++++++++
M.config/emacs/init.el | 2+-
M.config/nvim/lua/settings.lua | 2+-
A.config/sxhkd/sxhkdrc | 32++++++++++++++++++++++++++++++++
M.config/zsh/.zshrc | 4++--
M.zprofile | 7+++----
Mscripts/bookmarks | 4++--
Mscripts/brightness | 14+++++++-------
Mscripts/rdp | 2+-
Mscripts/rdpmenu | 2+-
10 files changed, 73 insertions(+), 19 deletions(-)

diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc @@ -0,0 +1,23 @@ +[global] + follow = mouse + width = (0, 300) + origin = top-right + offset = 10x30 + +[urgency_low] + background = "#222222" + foreground = "#888888" + timeout = 5 + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 5 + override_pause_level = 30 + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + override_pause_level = 60 diff --git a/.config/emacs/init.el b/.config/emacs/init.el @@ -20,7 +20,7 @@ (add-hook 'after-make-frame-functions 'my/disable-scroll-bars) -(setq-default indent-tabs-mode nil) +;; (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq inhibit-splash-screen t inhibit-startup-message t diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua @@ -18,7 +18,7 @@ vim.cmd('set makeprg=./build.sh') o.mouse = 'a' -- o.relativenumber = true -- o.number = true -o.expandtab = true +-- o.expandtab = true o.tabstop = 4 o.shiftwidth = 4 o.autochdir = true diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -0,0 +1,32 @@ +super+slash + bookmarks + +super+r + rdpmenu + +super+n + st -e "newsboat" + +super+shift+n + st -e "neomutt" + +super+p + rofi -show drun -show-icons + +super+Delete + i3lock -c 181818 + +XF86AudioRaiseVolume + wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ + +XF86AudioLowerVolume + wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- + +XF86AudioMute + wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + +XF86MonBrightnessUp + brightness up + +XF86MonBrightnessDown + brightness down diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -5,8 +5,8 @@ autoload -U colors && colors # fancy prompt #PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " -#PROMPT="%{$fg[green]%}%n@%m %{$fg[cyan]%}%~ %{$reset_color%}%# " -PROMPT="%{$fg[cyan]%}%~ %{$fg[magenta]%}>>%{$reset_color%} " +PROMPT="%{$fg[green]%}%n@%m %{$fg[cyan]%}%~ %{$reset_color%}%# " +#PROMPT="%{$fg[cyan]%}%~ %{$fg[magenta]%}>>%{$reset_color%} " HISTFILE=$HOME/.cache/zsh/history HISTSIZE=10000 diff --git a/.zprofile b/.zprofile @@ -2,7 +2,7 @@ export MOZ_ENABLE_WAYLAND=1 export ELECTRON_OZONE_PLATFORM_HINT=wayland -export GTK_THEME=Adwaita:dark +# export GTK_THEME=Adwaita:dark export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" @@ -24,10 +24,9 @@ export _JAVA_AWT_WM_NONREPARENTING=1 # java is dumb export EDITOR=nvim export BROWSER=librewolf export TERMINAL=foot -export TERM=xterm-256color # some programs don't recognise foot and revert back to ascii-term export PATH=$CARGO_HOME/bin:$HOME/.local/bin:$HOME/scripts:$PATH -export XDG_CURRENT_DESKTOP=wlroots +# export XDG_CURRENT_DESKTOP=wlroots -[ $(tty) = "/dev/tty1" ] && [ -z $DISPLAY ] && dbus-run-session dwl -s dwlb +[ $(tty) = "/dev/tty1" ] && [ -z $DISPLAY ] && startx diff --git a/scripts/bookmarks b/scripts/bookmarks @@ -2,6 +2,6 @@ readarray -t bookmarks < $MENULAUNCHER_DIR/bookmarks -url=$(printf '%s\n' "${bookmarks[@]}" | wofi_style --show dmenu -p "Bookmark" -i | sed 's/^.*: //g') +url=$(printf '%s\n' "${bookmarks[@]}" | rofi -dmenu -p "Bookmark" -i | sed 's/^.*: //g') -[[ ! -z "$url" ]] && $BROWSER --new-tab $url +[[ ! -z "$url" ]] && firefox --new-tab $url diff --git a/scripts/brightness b/scripts/brightness @@ -1,18 +1,18 @@ #!/bin/sh -fifo_path="/tmp/wobpipe-brightness" +fifo=/tmp/xobpipe-brightness rate="5%" -if test ! -e $fifo_path; then - killall wob - mkfifo $fifo_path - tail -f $fifo_path | wob & +if [ ! -e $fifo ]; then + killall xob + mkfifo $fifo + tail -f $fifo | xob & fi if test "$1" = "up"; then - brightnessctl s "$rate+" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path + brightnessctl s "$rate+" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo elif test "$1" = "down"; then - brightnessctl s "$rate-" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo_path + brightnessctl s "$rate-" | egrep -o "[0-9]*%" | sed "s/%//g" > $fifo else echo "Usage: ./brightness [up|down]" fi diff --git a/scripts/rdp b/scripts/rdp @@ -10,7 +10,7 @@ if test -z "$1"; then fi RDP_FILE="$XDG_DATA_HOME/rdp/$1" -CONN_SETTINGS="/size:1920x1080 /dynamic-resolution /from-stdin /cert:tofu /tls:seclevel:0" +CONN_SETTINGS="/size:1920x1080 /dynamic-resolution /from-stdin /cert:tofu /tls:seclevel:0 -grab-keyboard" CONN_SERVER=$(cat $RDP_FILE | grep "server=" | sed "s/server=//") CONN_USER=$(cat $RDP_FILE | grep "user=" | sed "s/user=//") CONN_PASS=$(cat $RDP_FILE | grep "pass=" | sed "s/pass=//") diff --git a/scripts/rdpmenu b/scripts/rdpmenu @@ -1,5 +1,5 @@ #!/bin/sh -server=$(echo "$(ls $XDG_DATA_HOME/rdp)" | wofi_style --show dmenu -p "Server" -i -M fuzzy) +server=$(echo "$(ls $XDG_DATA_HOME/rdp)" | rofi -dmenu -p "Server" -i) [[ ! -z "$server" ]] && rdp "$server"