diff --git a/.config/i3/config b/.config/i3/config index 407a4985..4b27ad8c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -8,7 +8,7 @@ set $inner_gap 10 set $outer_gap 2 set $term --no-startup-id $TERMINAL set $mod Mod4 -set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager +set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager && notify-send "Refreshed Network Manager" set $stoprec --no-startup-id dmenu_record kill # #---Polybar---# # @@ -47,7 +47,7 @@ bindsym $mod+Shift+Escape exec --no-startup-id dmenu_systempoweroptions # #---Letter Key Bindings---# # # A bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+shift+a exec $term -e alsamixer +bindsym $mod+shift+a exec $term -e alsamixer # B bindsym $mod+b exec --no-startup-id polybar-msg cmd toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left @@ -106,9 +106,9 @@ bindsym $mod+Shift+t gaps inner current set $inner_gap; gaps outer curren # U bindsym $mod+u exec --no-startup-id ddspawn tmuxdd bindsym $mod+Shift+u exec --no-startup-id i3resize down -# X -bindsym $mod+v exec discord -bindsym $mod+Shift+v exec slack +# V +bindsym $mod+v exec keybinding_not_assigned +bindsym $mod+Shift+v exec keybinding_not_assigned # W bindsym $mod+w exec $term -e sudo nmtui bindsym $mod+Shift+w exec $BROWSER diff --git a/.local/bin/dmenu_updatemirrors b/.local/bin/dmenu_updatemirrors new file mode 100755 index 00000000..bbcad690 --- /dev/null +++ b/.local/bin/dmenu_updatemirrors @@ -0,0 +1,8 @@ +#!/bin/sh + +user_choice=$(printf "Yes\nNo" | dmenu -i -p "Refresh mirrors? (It might speed up package downloads): ") +case "$user_choice" in + "Yes") notify-send "Refreshing mirrors" && (reflector --verbose --latest 100 --sort rate --save /etc/pacman.d/mirrorlist >/dev/null 2>&1; notify-send "Mirrors refreshed") & ;; + "No") notify-send "Did not refresh mirrors" && return ;; + *) notify-send "No option selected" && return ;; +esac diff --git a/.local/bin/ifinstalled b/.local/bin/ifinstalled index c8e1c2ec..b70c2bbf 100755 --- a/.local/bin/ifinstalled +++ b/.local/bin/ifinstalled @@ -1,4 +1,4 @@ #!/bin/sh # If $1 command is not available, error code and notify. -command -v "$1" >/dev/null || { notify-send "📦 $1" "must be installed for this function." && exit 1 ;} +command -v "$1" >/dev/null || { notify-send "$1" "must be installed for this function." && exit 1 ;} diff --git a/.local/bin/keybinding_not_assigned b/.local/bin/keybinding_not_assigned new file mode 100755 index 00000000..8a82321a --- /dev/null +++ b/.local/bin/keybinding_not_assigned @@ -0,0 +1,3 @@ +#!/bin/sh + +notify-send "This keybinding is not assigned to anything" diff --git a/.local/bin/update_mirrors b/.local/bin/update_mirrors deleted file mode 100755 index feb54be0..00000000 --- a/.local/bin/update_mirrors +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env sh - -run_reflector(){ -dialog --title "Refresh mirrors" --yesno "Run reflector? It might speed up package downloads." 7 60 -response=$? -case $response in - 0) (reflector --verbose --latest 100 --sort rate --save /etc/pacman.d/mirrorlist >/dev/null 2>&1; notify-send "Mirrors refreshed") & ;; - 1) notify-send "Mirrors not refreshed" ;; -esac -} -run_reflector -clear -exit 0 diff --git a/.local/share/larbs/emoji b/.local/share/dotfiles/emoji similarity index 100% rename from .local/share/larbs/emoji rename to .local/share/dotfiles/emoji diff --git a/.local/share/larbs/getkeys/calcurse b/.local/share/dotfiles/getkeys/calcurse similarity index 100% rename from .local/share/larbs/getkeys/calcurse rename to .local/share/dotfiles/getkeys/calcurse diff --git a/.local/share/larbs/getkeys/i3 b/.local/share/dotfiles/getkeys/i3 similarity index 100% rename from .local/share/larbs/getkeys/i3 rename to .local/share/dotfiles/getkeys/i3 diff --git a/.local/share/larbs/getkeys/mutt b/.local/share/dotfiles/getkeys/mutt similarity index 100% rename from .local/share/larbs/getkeys/mutt rename to .local/share/dotfiles/getkeys/mutt diff --git a/.local/share/larbs/getkeys/ranger b/.local/share/dotfiles/getkeys/ranger similarity index 100% rename from .local/share/larbs/getkeys/ranger rename to .local/share/dotfiles/getkeys/ranger diff --git a/.local/share/larbs/getkeys/sxiv b/.local/share/dotfiles/getkeys/sxiv similarity index 100% rename from .local/share/larbs/getkeys/sxiv rename to .local/share/dotfiles/getkeys/sxiv diff --git a/.local/share/larbs/getkeys/zathura b/.local/share/dotfiles/getkeys/zathura similarity index 100% rename from .local/share/larbs/getkeys/zathura rename to .local/share/dotfiles/getkeys/zathura diff --git a/.local/share/larbs/ttymaps.kmap b/.local/share/dotfiles/ttymaps.kmap similarity index 100% rename from .local/share/larbs/ttymaps.kmap rename to .local/share/dotfiles/ttymaps.kmap diff --git a/.xinitrc b/.xinitrc index 405c2b1d..df60731b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -4,15 +4,12 @@ # There are some small but important commands that need to be run when we start # the graphical environment. Those commands reside in ~/.xprofile because that -# file runs automatically if someone uses a display manager (login screen) -# and so they are needed there. To prevent doubling up commands, I source them -# here with the line below. +# file runs automatically. [ -f ~/.xprofile ] && . ~/.xprofile +# [ -f ~/.profile ] && . ~/.profile -[ -f ~/.profile ] && . ~/.profile - -# if problems occur, log to file for debugging: -#exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1 +# Log to file in $HOME for debugging: +#exec i3 -V >> $HOME/i3log-$(date +'%F-%k-%M-%S') 2>&1 # else: exec i3