Compare commits
2 Commits
bd40b3cdd5
...
c35e40893b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c35e40893b | ||
|
|
540f3fd989 |
@ -82,20 +82,20 @@ assign [class="Thunderbird"] $ws2
|
|||||||
|
|
||||||
# lock / logout / sleep / hibernate / restart / poweroff
|
# lock / logout / sleep / hibernate / restart / poweroff
|
||||||
# TODO convert this to swaylock
|
# TODO convert this to swaylock
|
||||||
set $mode_system "System l e s鈴 h rﰇ וּsﮤ"
|
#set $mode_system "System l e s鈴 h rﰇ וּsﮤ"
|
||||||
mode $mode_system {
|
#mode $mode_system {
|
||||||
bindsym l exec --no-startup-id ~/.config/i3/i3exit.sh lock, mode "default"
|
# bindsym l exec --no-startup-id ~/.config/i3/i3exit.sh lock, mode "default"
|
||||||
bindsym e exec --no-startup-id ~/.config/i3/i3exit.sh logout, mode "default"
|
# bindsym e exec --no-startup-id ~/.config/i3/i3exit.sh logout, mode "default"
|
||||||
bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
# bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
||||||
bindsym h exec --no-startup-id ~/.config/i3/i3exit.sh hibernate, mode "default"
|
# bindsym h exec --no-startup-id ~/.config/i3/i3exit.sh hibernate, mode "default"
|
||||||
bindsym r exec --no-startup-id ~/.config/i3/i3exit.sh reboot, mode "default"
|
# bindsym r exec --no-startup-id ~/.config/i3/i3exit.sh reboot, mode "default"
|
||||||
bindsym Shift+s exec --no-startup-id ~/.config/i3/i3exit.sh shutdown, mode "default"
|
# bindsym Shift+s exec --no-startup-id ~/.config/i3/i3exit.sh shutdown, mode "default"
|
||||||
# back to normal: Enter or Escape
|
# # back to normal: Enter or Escape
|
||||||
bindsym Return mode "default"
|
# bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
# bindsym Escape mode "default"
|
||||||
}
|
#}
|
||||||
bindsym $mod+Pause mode $mode_system
|
#bindsym $mod+Pause mode $mode_system
|
||||||
bindsym $mod+F12 mode $mode_system
|
#bindsym $mod+F12 mode $mode_system
|
||||||
|
|
||||||
# do a nice menu for keyboard layouts
|
# do a nice menu for keyboard layouts
|
||||||
# TODO convert to wayland, using dconf-editor perhaps?
|
# TODO convert to wayland, using dconf-editor perhaps?
|
||||||
|
|||||||
@ -148,3 +148,5 @@ $bindsym --locked XF86AudioMute exec $volume_mute
|
|||||||
# modes
|
# modes
|
||||||
## Launch // Resize Mode ##
|
## Launch // Resize Mode ##
|
||||||
$bindsym $mod+r mode $mode_resize
|
$bindsym $mod+r mode $mode_resize
|
||||||
|
## Launch // Exit Menu ##
|
||||||
|
$bindsym $mod+F12 mode $mode_shutdown
|
||||||
|
|||||||
@ -1,33 +1,36 @@
|
|||||||
|
set $mode_color_foreground $light0
|
||||||
|
set $mode_color_action $bright_green
|
||||||
|
|
||||||
# RESIZE
|
# RESIZE
|
||||||
set $mode_resize "<span foreground='$light0'></span> \
|
set $mode_resize "<span foreground='$mode_color_foreground'></span> \
|
||||||
<span foreground='$light0'><b>Resize</b></span> <span foreground='$bright_green'>(<b>↑ ↓ ← →</b>)</span> \
|
<span foreground='$mode_color_foreground'><b>Resize</b></span> <span foreground='$mode_color_action'>(<b>↑ ↓ ← →</b>)</span> \
|
||||||
<span foreground='$light0'><b>Increase Gaps</b></span> <span foreground='$bright_green'>(<b>+</b>)</span> \
|
<span foreground='$mode_color_foreground'><b>Increase Gaps</b></span> <span foreground='$mode_color_action'>(<b>+</b>)</span> \
|
||||||
<span foreground='$light0'><b>Decrease Gaps</b></span> <span foreground='$bright_green'>(<b>-</b>)</span>"
|
<span foreground='$mode_color_foreground'><b>Decrease Gaps</b></span> <span foreground='$mode_color_action'>(<b>-</b>)</span>"
|
||||||
|
|
||||||
mode --pango_markup $mode_resize {
|
mode --pango_markup $mode_resize {
|
||||||
# left will shrink the containers width
|
# left will shrink the containers width
|
||||||
# right will grow the containers width
|
# right will grow the containers width
|
||||||
# up will shrink the containers height
|
# up will shrink the containers height
|
||||||
# down will grow the containers height
|
# down will grow the containers height
|
||||||
$bindsym $left resize shrink width 10px
|
$bindsym $left resize shrink width $resizestepsize
|
||||||
$bindsym $down resize grow height 10px
|
$bindsym $down resize grow height $resizestepsize
|
||||||
$bindsym $up resize shrink height 10px
|
$bindsym $up resize shrink height $resizestepsize
|
||||||
$bindsym $right resize grow width 10px
|
$bindsym $right resize grow width $resizestepsize
|
||||||
|
|
||||||
$bindsym $left_alt resize shrink width 10px
|
$bindsym $left_alt resize shrink width $resizestepsize
|
||||||
$bindsym $down_alt resize grow height 10px
|
$bindsym $down_alt resize grow height $resizestepsize
|
||||||
$bindsym $up_alt resize shrink height 10px
|
$bindsym $up_alt resize shrink height $resizestepsize
|
||||||
$bindsym $right_alt resize grow width 10px
|
$bindsym $right_alt resize grow width $resizestepsize
|
||||||
|
|
||||||
$bindsym Shift+$left resize shrink width 50px
|
$bindsym Shift+$left resize shrink width $resizestepsize
|
||||||
$bindsym Shift+$down resize grow height 50px
|
$bindsym Shift+$down resize grow height $resizestepsize
|
||||||
$bindsym Shift+$up resize shrink height 50px
|
$bindsym Shift+$up resize shrink height $resizestepsize
|
||||||
$bindsym Shift+$right resize grow width 50px
|
$bindsym Shift+$right resize grow width $resizestepsize
|
||||||
|
|
||||||
$bindsym Shift+$left_alt resize shrink width 50px
|
$bindsym Shift+$left_alt resize shrink width $resizestepsize
|
||||||
$bindsym Shift+$down_alt resize grow height 50px
|
$bindsym Shift+$down_alt resize grow height $resizestepsize
|
||||||
$bindsym Shift+$up_alt resize shrink height 50px
|
$bindsym Shift+$up_alt resize shrink height $resizestepsize
|
||||||
$bindsym Shift+$right_alt resize grow width 50px
|
$bindsym Shift+$right_alt resize grow width $resizestepsize
|
||||||
|
|
||||||
## Resize // Window Gaps // + - ##
|
## Resize // Window Gaps // + - ##
|
||||||
$bindsym minus gaps inner current minus 5px
|
$bindsym minus gaps inner current minus 5px
|
||||||
@ -37,3 +40,40 @@ mode --pango_markup $mode_resize {
|
|||||||
$bindsym Return mode "default"
|
$bindsym Return mode "default"
|
||||||
$bindsym Escape mode "default"
|
$bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# SHUTDOWN
|
||||||
|
set $mode_shutdown "\
|
||||||
|
<span foreground='$mode_color_action'></span> \
|
||||||
|
<span foreground='$mode_color_foreground'> \
|
||||||
|
<span foreground='$mode_color_action'>(<b>h</b>)</span>hibernate \
|
||||||
|
<span foreground='$mode_color_action'>(<b>l</b>)</span>lock \
|
||||||
|
<span foreground='$mode_color_action'>(<b>e</b>)</span>logout \
|
||||||
|
<span foreground='$mode_color_action'>(<b>r</b>)</span>reboot \
|
||||||
|
<span foreground='$mode_color_action'>(<b>u</b>)</span>suspend \
|
||||||
|
<span foreground='$mode_color_action'>(<b>s</b>)</span>shutdown \
|
||||||
|
</span>"
|
||||||
|
|
||||||
|
set $purge_cliphist [ $purge_cliphist_logout == 'true' ] && rm -f $HOME/.cache/cliphist/db || exit 0
|
||||||
|
|
||||||
|
mode --pango_markup $mode_shutdown {
|
||||||
|
# lock
|
||||||
|
$bindsym l mode "default", exec $locking
|
||||||
|
|
||||||
|
# logout
|
||||||
|
$bindsym e exec $purge_cliphist; exec loginctl terminate-user $USER
|
||||||
|
|
||||||
|
# suspend
|
||||||
|
$bindsym u mode "default", exec systemctl suspend
|
||||||
|
|
||||||
|
# hibernate
|
||||||
|
$bindsym h mode "default", exec systemctl hibernate
|
||||||
|
|
||||||
|
# shutdown
|
||||||
|
$bindsym s exec $purge_cliphist; exec systemctl poweroff
|
||||||
|
|
||||||
|
# reboot
|
||||||
|
$bindsym r exec $purge_cliphist; exec systemctl reboot
|
||||||
|
|
||||||
|
# Return to default mode.
|
||||||
|
$bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|||||||
@ -10,6 +10,8 @@ set $background $HOME/pictures/wallpapers/iceland.jpg
|
|||||||
set $swayconfig $HOME/.config/sway
|
set $swayconfig $HOME/.config/sway
|
||||||
set $swayscripts $swayconfig/scripts
|
set $swayscripts $swayconfig/scripts
|
||||||
|
|
||||||
|
# resize behaviour
|
||||||
|
set $resizestepsize 30px
|
||||||
|
|
||||||
###
|
###
|
||||||
### Variables
|
### Variables
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user