Add a ton of i3 and sway stuff
This commit is contained in:
parent
15f30efa7b
commit
9a43cae5fa
22 changed files with 435 additions and 47 deletions
|
@ -28,7 +28,7 @@ exec --no-startup-id dex --autostart --environment i3
|
|||
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
|
@ -154,7 +154,7 @@ bindsym $mod+Shift+c reload
|
|||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
|
@ -189,4 +189,4 @@ bar {
|
|||
status_command i3status
|
||||
}
|
||||
|
||||
include ~/.config/i3/config.d/*.conf
|
||||
include /home/askiiart/.config/i3/config.d/*.conf
|
||||
|
|
|
@ -2,7 +2,10 @@ for_window [window_role="pop-up"] floating enable
|
|||
for_window [window_role="task_dialog"] floating enable
|
||||
|
||||
# auth agent (the sudo popup)
|
||||
exec --no-startup-id polkit
|
||||
#exec --no-startup-id polkit
|
||||
|
||||
# Run suspend-lock
|
||||
#exec --no-startup-id xss-lock -- ~/.config/i3/scripts/suspend-lock.sh
|
||||
# Background
|
||||
exec --no-startup-id feh --no-fehbg --bg-fill '/home/askiiart/.config/i3/things/background.png'
|
||||
|
||||
# Lock
|
||||
bindsym $mod+Control+l exec --no-startup-id i3lock -c 202f56
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
|
||||
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# Change to vi-style nav
|
||||
bindsym $mod+h focus left
|
||||
|
@ -12,4 +12,24 @@ bindsym $mod+Shift+l move right
|
|||
bindsym $mod+semicolon split h
|
||||
|
||||
# Change term to kitty
|
||||
bindsym $mod+Return exec kitty
|
||||
bindsym $mod+Return exec kitty
|
||||
|
||||
# sleep and lock
|
||||
|
||||
# shutdown / restart / suspend...
|
||||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (CTRL+s) shutdown
|
||||
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id $i3lockwall, mode "default"
|
||||
bindsym e exec --no-startup-id i3-msg exit, mode "default"
|
||||
bindsym s exec --no-startup-id $i3lockwall && systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id $i3lockwall && systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym Ctrl+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+BackSpace mode "$mode_system"
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
set -e
|
||||
xset s dpms 0 0 0
|
||||
i3lock --color 202f56 --ignore-empty-password --show-failed-attempts --nofork
|
||||
xset s off -dpms
|
BIN
i3/things/background.png
Normal file
BIN
i3/things/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
7
i3/things/lid-close.sh
Executable file
7
i3/things/lid-close.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
source $HOME/.Xdbus
|
||||
grep -q closed /proc/acpi/button/lid/LID0/state
|
||||
if [ $? = 0 ]; then
|
||||
i3lock -c 202f56
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue