mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
dd4da923d8
@ -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
|
||||
|
||||
8
.local/bin/dmenu_updatemirrors
Executable file
8
.local/bin/dmenu_updatemirrors
Executable file
@ -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
|
||||
@ -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 ;}
|
||||
|
||||
3
.local/bin/keybinding_not_assigned
Executable file
3
.local/bin/keybinding_not_assigned
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
notify-send "This keybinding is not assigned to anything"
|
||||
@ -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
|
||||
11
.xinitrc
11
.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user