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 $outer_gap 2
|
||||||
set $term --no-startup-id $TERMINAL
|
set $term --no-startup-id $TERMINAL
|
||||||
set $mod Mod4
|
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
|
set $stoprec --no-startup-id dmenu_record kill
|
||||||
|
|
||||||
# #---Polybar---# #
|
# #---Polybar---# #
|
||||||
@ -106,9 +106,9 @@ bindsym $mod+Shift+t gaps inner current set $inner_gap; gaps outer curren
|
|||||||
# U
|
# U
|
||||||
bindsym $mod+u exec --no-startup-id ddspawn tmuxdd
|
bindsym $mod+u exec --no-startup-id ddspawn tmuxdd
|
||||||
bindsym $mod+Shift+u exec --no-startup-id i3resize down
|
bindsym $mod+Shift+u exec --no-startup-id i3resize down
|
||||||
# X
|
# V
|
||||||
bindsym $mod+v exec discord
|
bindsym $mod+v exec keybinding_not_assigned
|
||||||
bindsym $mod+Shift+v exec slack
|
bindsym $mod+Shift+v exec keybinding_not_assigned
|
||||||
# W
|
# W
|
||||||
bindsym $mod+w exec $term -e sudo nmtui
|
bindsym $mod+w exec $term -e sudo nmtui
|
||||||
bindsym $mod+Shift+w exec $BROWSER
|
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
|
#!/bin/sh
|
||||||
|
|
||||||
# If $1 command is not available, error code and notify.
|
# 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
|
# 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
|
# the graphical environment. Those commands reside in ~/.xprofile because that
|
||||||
# file runs automatically if someone uses a display manager (login screen)
|
# file runs automatically.
|
||||||
# and so they are needed there. To prevent doubling up commands, I source them
|
|
||||||
# here with the line below.
|
|
||||||
|
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
# [ -f ~/.profile ] && . ~/.profile
|
||||||
|
|
||||||
[ -f ~/.profile ] && . ~/.profile
|
# Log to file in $HOME for debugging:
|
||||||
|
#exec i3 -V >> $HOME/i3log-$(date +'%F-%k-%M-%S') 2>&1
|
||||||
# if problems occur, log to file for debugging:
|
|
||||||
#exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1
|
|
||||||
# else:
|
# else:
|
||||||
exec i3
|
exec i3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user