mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added new power script, updated i3 commands, and cleaned up xprofile until I figure out the imwheel issue
This commit is contained in:
parent
5dd5b3fcd2
commit
11e49f34e6
@ -5,20 +5,15 @@
|
|||||||
|
|
||||||
# #---Variables---# #
|
# #---Variables---# #
|
||||||
set $inner_gap 10
|
set $inner_gap 10
|
||||||
set $outer_gap 5
|
set $outer_gap 2
|
||||||
|
|
||||||
# #---Polybar---# #
|
|
||||||
exec_always --no-startup-id launch_polybar
|
|
||||||
|
|
||||||
# #---Basic Definitions---# #
|
|
||||||
for_window [class="^.*"] border pixel 2
|
|
||||||
gaps inner $inner_gap
|
|
||||||
gaps outer $outer_gap
|
|
||||||
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
|
||||||
set $stoprec --no-startup-id dmenu_record kill
|
set $stoprec --no-startup-id dmenu_record kill
|
||||||
|
|
||||||
|
# #---Polybar---# #
|
||||||
|
exec_always --no-startup-id launch_polybar
|
||||||
|
|
||||||
# #---Gaps---# #
|
# #---Gaps---# #
|
||||||
for_window [class="^.*"] border pixel 2
|
for_window [class="^.*"] border pixel 2
|
||||||
gaps inner $inner_gap
|
gaps inner $inner_gap
|
||||||
@ -35,7 +30,6 @@ for_window [instance="dropdown_dropdowncalc"] resize set 800 300
|
|||||||
for_window [instance="dropdown_tmuxdd"] border pixel 3
|
for_window [instance="dropdown_tmuxdd"] border pixel 3
|
||||||
for_window [instance="dropdown_dropdowncalc"] border pixel 2
|
for_window [instance="dropdown_dropdowncalc"] border pixel 2
|
||||||
for_window [instance="dropdown_*"] move position center
|
for_window [instance="dropdown_*"] move position center
|
||||||
for_window [class="discord"] move to workspace $ws10
|
|
||||||
for_window [class="Pulse"] move to workspace $ws9
|
for_window [class="Pulse"] move to workspace $ws9
|
||||||
|
|
||||||
# #---Basic Bindings---# #
|
# #---Basic Bindings---# #
|
||||||
@ -47,10 +41,8 @@ bindsym $mod+Escape workspace prev
|
|||||||
bindsym $mod+grave exec --no-startup-id dmenu_unicode
|
bindsym $mod+grave exec --no-startup-id dmenu_unicode
|
||||||
bindsym $mod+Insert exec --no-startup-id showclip
|
bindsym $mod+Insert exec --no-startup-id showclip
|
||||||
|
|
||||||
# #---Power Bindings---# #
|
# #---User Session Bindings---# #
|
||||||
bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit Xorg Session?" "i3 exit"
|
bindsym $mod+Shift+Escape exec --no-startup-id dmenu_systempoweroptions
|
||||||
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
|
|
||||||
bindsym $mod+Ctrl+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
|
|
||||||
|
|
||||||
# #---Letter Key Bindings---# #
|
# #---Letter Key Bindings---# #
|
||||||
# A
|
# A
|
||||||
|
|||||||
11
.local/bin/dmenu_systempoweroptions
Executable file
11
.local/bin/dmenu_systempoweroptions
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
user_choice=$(printf "Logout\nPoweroff\nReboot\nCancel" | dmenu -i -p "What should the computer do?: ")
|
||||||
|
case "$user_choice" in
|
||||||
|
"Logout") i3 exit ;;
|
||||||
|
"Poweroff") notify-send "Shutting down in 10 seconds" && sleep 10 && shutdown ;;
|
||||||
|
"Reboot") notify-send "Rebooting!" && sleep 5 && reboot ;;
|
||||||
|
*) notify-send "No system power option selected" && return ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
@ -3,13 +3,10 @@
|
|||||||
# This file runs when a DM logs you into a graphical session.
|
# This file runs when a DM logs you into a graphical session.
|
||||||
# If you use startx/xinit like a Chad, this file will also be sourced.
|
# If you use startx/xinit like a Chad, this file will also be sourced.
|
||||||
|
|
||||||
# Set computer date and time
|
|
||||||
ntpd -gq
|
|
||||||
|
|
||||||
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
||||||
setbg & # set the background with the `setbg` script
|
setbg & # set the background with the `setbg` script
|
||||||
xcompmgr & # xcompmgr for transparency
|
xcompmgr & # xcompmgr for transparency
|
||||||
dunst & # dunst for notifications
|
dunst & # dunst for notifications
|
||||||
imwheel & # imwheel for disabling scroll issues in st
|
#imwheel & # imwheel for disabling scroll issues in st
|
||||||
xset r rate 300 50 & # Speed xrate up
|
xset r rate 300 50 & # Speed xrate up
|
||||||
unclutter & # Remove mouse when idle
|
unclutter & # Remove mouse when idle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user