Compare commits
2 Commits
1f3ac280d0
...
bd40b3cdd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd40b3cdd5 | ||
|
|
258d6f2c4d |
@ -45,8 +45,11 @@ input "1267:12590:ELAN0755:00_04F3:312E_Touchpad" {
|
|||||||
# Disallow endless looping of focus: extreme right is extreme right, don't flip to extreme left whenever you want...
|
# Disallow endless looping of focus: extreme right is extreme right, don't flip to extreme left whenever you want...
|
||||||
focus_wrapping no
|
focus_wrapping no
|
||||||
|
|
||||||
|
# include the modes - to be mapped in keybinding.conf
|
||||||
|
include $swayconfig/modes.conf
|
||||||
|
|
||||||
# include all the keybindings
|
# include all the keybindings
|
||||||
include $HOME/.config/sway/keybinding.conf
|
include $swayconfig/keybinding.conf
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# PROGRAMS
|
# PROGRAMS
|
||||||
@ -57,25 +60,25 @@ assign [class="Thunderbird"] $ws2
|
|||||||
######################
|
######################
|
||||||
# MODES
|
# MODES
|
||||||
######################
|
######################
|
||||||
mode "resize" {
|
#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 10px
|
||||||
bindsym $down resize grow height 10px
|
# bindsym $down resize grow height 10px
|
||||||
bindsym $up resize shrink height 10px
|
# bindsym $up resize shrink height 10px
|
||||||
bindsym $right resize grow width 10px
|
# bindsym $right resize grow width 10px
|
||||||
# Ditto, with arrow keys
|
# # Ditto, with arrow keys
|
||||||
bindsym Left resize shrink width 10px
|
# bindsym $left_alt resize shrink width 10px
|
||||||
bindsym Down resize grow height 10px
|
# bindsym $down_alt resize grow height 10px
|
||||||
bindsym Up resize shrink height 10px
|
# bindsym $up_alt resize shrink height 10px
|
||||||
bindsym Right resize grow width 10px
|
# bindsym Right resize grow width 10px
|
||||||
# Return to default mode
|
# # Return to default mode
|
||||||
bindsym Return mode "default"
|
# bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
# bindsym Escape mode "default"
|
||||||
}
|
#}
|
||||||
bindsym $mod+r mode "resize"
|
# bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# lock / logout / sleep / hibernate / restart / poweroff
|
# lock / logout / sleep / hibernate / restart / poweroff
|
||||||
# TODO convert this to swaylock
|
# TODO convert this to swaylock
|
||||||
|
|||||||
@ -39,20 +39,20 @@ bindsym $mod+$down focus down
|
|||||||
bindsym $mod+$up focus up
|
bindsym $mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
bindsym $mod+$right focus right
|
||||||
# Or use $mod+[up|down|left|right]
|
# Or use $mod+[up|down|left|right]
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+$left_alt focus left
|
||||||
bindsym $mod+Down focus down
|
bindsym $mod+$down_alt focus down
|
||||||
bindsym $mod+Up focus up
|
bindsym $mod+$up_alt focus up
|
||||||
bindsym $mod+Right focus right
|
bindsym $mod+$right_alt focus right
|
||||||
# Move the focused window with the same, but add Shift
|
# Move the focused window with the same, but add Shift
|
||||||
bindsym $mod+Shift+$left move left
|
bindsym $mod+Shift+$left move left
|
||||||
bindsym $mod+Shift+$down move down
|
bindsym $mod+Shift+$down move down
|
||||||
bindsym $mod+Shift+$up move up
|
bindsym $mod+Shift+$up move up
|
||||||
bindsym $mod+Shift+$right move right
|
bindsym $mod+Shift+$right move right
|
||||||
# Ditto, with arrow keys
|
# Ditto, with arrow keys
|
||||||
bindsym $mod+Shift+Left move left
|
bindsym $mod+Shift+$left_alt move left
|
||||||
bindsym $mod+Shift+Down move down
|
bindsym $mod+Shift+$down_alt move down
|
||||||
bindsym $mod+Shift+Up move up
|
bindsym $mod+Shift+$up_alt move up
|
||||||
bindsym $mod+Shift+Right move right
|
bindsym $mod+Shift+$right_alt move right
|
||||||
# move workspace to left and right monitors
|
# move workspace to left and right monitors
|
||||||
bindsym $mod+Shift+bracketleft move workspace to output left
|
bindsym $mod+Shift+bracketleft move workspace to output left
|
||||||
bindsym $mod+Shift+bracketright move workspace to output right
|
bindsym $mod+Shift+bracketright move workspace to output right
|
||||||
@ -134,3 +134,17 @@ $bindsym $mod+question exec $help
|
|||||||
|
|
||||||
# allow to kill focused floating shell windows using Esc (manjaro)
|
# allow to kill focused floating shell windows using Esc (manjaro)
|
||||||
$bindsym --release Escape [app_id="floating_shell" con_id=__focused__] kill
|
$bindsym --release Escape [app_id="floating_shell" con_id=__focused__] kill
|
||||||
|
|
||||||
|
# manjaro copy
|
||||||
|
$bindsym --locked XF86MonBrightnessUp exec $brightness_up
|
||||||
|
$bindsym --locked $mod+Shift+b exec $brightness_up
|
||||||
|
$bindsym --locked XF86MonBrightnessDown exec $brightness_down
|
||||||
|
|
||||||
|
# --locked flags allow the buttons to be used whilst the screen is locked.
|
||||||
|
$bindsym --locked XF86AudioRaiseVolume exec $volume_up
|
||||||
|
$bindsym --locked XF86AudioLowerVolume exec $volume_down
|
||||||
|
$bindsym --locked XF86AudioMute exec $volume_mute
|
||||||
|
|
||||||
|
# modes
|
||||||
|
## Launch // Resize Mode ##
|
||||||
|
$bindsym $mod+r mode $mode_resize
|
||||||
|
|||||||
39
dot_config/sway/modes.conf
Normal file
39
dot_config/sway/modes.conf
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# RESIZE
|
||||||
|
set $mode_resize "<span foreground='$light0'></span> \
|
||||||
|
<span foreground='$light0'><b>Resize</b></span> <span foreground='$bright_green'>(<b>↑ ↓ ← →</b>)</span> \
|
||||||
|
<span foreground='$light0'><b>Increase Gaps</b></span> <span foreground='$bright_green'>(<b>+</b>)</span> \
|
||||||
|
<span foreground='$light0'><b>Decrease Gaps</b></span> <span foreground='$bright_green'>(<b>-</b>)</span>"
|
||||||
|
|
||||||
|
mode --pango_markup $mode_resize {
|
||||||
|
# left will shrink the containers width
|
||||||
|
# right will grow the containers width
|
||||||
|
# up will shrink the containers height
|
||||||
|
# down will grow the containers height
|
||||||
|
$bindsym $left resize shrink width 10px
|
||||||
|
$bindsym $down resize grow height 10px
|
||||||
|
$bindsym $up resize shrink height 10px
|
||||||
|
$bindsym $right resize grow width 10px
|
||||||
|
|
||||||
|
$bindsym $left_alt resize shrink width 10px
|
||||||
|
$bindsym $down_alt resize grow height 10px
|
||||||
|
$bindsym $up_alt resize shrink height 10px
|
||||||
|
$bindsym $right_alt resize grow width 10px
|
||||||
|
|
||||||
|
$bindsym Shift+$left resize shrink width 50px
|
||||||
|
$bindsym Shift+$down resize grow height 50px
|
||||||
|
$bindsym Shift+$up resize shrink height 50px
|
||||||
|
$bindsym Shift+$right resize grow width 50px
|
||||||
|
|
||||||
|
$bindsym Shift+$left_alt resize shrink width 50px
|
||||||
|
$bindsym Shift+$down_alt resize grow height 50px
|
||||||
|
$bindsym Shift+$up_alt resize shrink height 50px
|
||||||
|
$bindsym Shift+$right_alt resize grow width 50px
|
||||||
|
|
||||||
|
## Resize // Window Gaps // + - ##
|
||||||
|
$bindsym minus gaps inner current minus 5px
|
||||||
|
$bindsym plus gaps inner current plus 5px
|
||||||
|
|
||||||
|
# Return to default mode
|
||||||
|
$bindsym Return mode "default"
|
||||||
|
$bindsym Escape mode "default"
|
||||||
|
}
|
||||||
@ -5,27 +5,17 @@ set $unbindsym unbindsym --to-code
|
|||||||
|
|
||||||
# background
|
# background
|
||||||
set $background $HOME/pictures/wallpapers/iceland.jpg
|
set $background $HOME/pictures/wallpapers/iceland.jpg
|
||||||
|
|
||||||
|
# directories
|
||||||
|
set $swayconfig $HOME/.config/sway
|
||||||
|
set $swayscripts $swayconfig/scripts
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Variables
|
### Variables
|
||||||
# Logo key. Use Mod1 for Alt.
|
# Logo key. Use Mod1 for Alt.
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
# Home row direction keys, like vim
|
|
||||||
set $left h
|
|
||||||
set $down j
|
|
||||||
set $up k
|
|
||||||
set $right l
|
|
||||||
|
|
||||||
# Your preferred terminal emulator
|
|
||||||
set $term $HOME/.config/sway/scripts/foot.sh
|
|
||||||
set $term_cwd $term -D "$(swaycwd 2>/dev/null || echo $HOME)"
|
|
||||||
set $term_float footclient -a floating_shell
|
|
||||||
|
|
||||||
# Your preferred application launcher
|
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
|
||||||
# on the original workspace that the command was run on.
|
|
||||||
#
|
|
||||||
# this is the default search menu
|
|
||||||
# set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
|
||||||
# Gruvbox Colors
|
# Gruvbox Colors
|
||||||
set $dark0_hard #1d2021
|
set $dark0_hard #1d2021
|
||||||
set $dark0_hard_t #1d2021e6
|
set $dark0_hard_t #1d2021e6
|
||||||
@ -68,6 +58,37 @@ set $faded_aqua #427b58
|
|||||||
set $faded_orange #af3a03
|
set $faded_orange #af3a03
|
||||||
set $transparent #ffffff00
|
set $transparent #ffffff00
|
||||||
|
|
||||||
|
# Direction keys
|
||||||
|
set $left Left
|
||||||
|
set $down Down
|
||||||
|
set $up Up
|
||||||
|
set $right Right
|
||||||
|
# Alternative direction keys
|
||||||
|
set $left_alt h
|
||||||
|
set $down_alt j
|
||||||
|
set $up_alt k
|
||||||
|
set $right_alt l
|
||||||
|
|
||||||
|
# Your preferred terminal emulator
|
||||||
|
set $term $HOME/.config/sway/scripts/foot.sh
|
||||||
|
set $term_cwd $term -D "$(swaycwd 2>/dev/null || echo $HOME)"
|
||||||
|
set $term_float footclient -a floating_shell
|
||||||
|
|
||||||
|
# onscreen bar
|
||||||
|
set $onscreen_bar $HOME/.config/sway/scripts/wob.sh "$bright_green" "$dark0_hard"
|
||||||
|
|
||||||
|
# brightness control
|
||||||
|
set $brightness $HOME/.config/sway/scripts/brightness.sh
|
||||||
|
set $brightness_up $brightness up | $onscreen_bar
|
||||||
|
set $brightness_down $brightness down | $onscreen_bar
|
||||||
|
|
||||||
|
# Your preferred application launcher
|
||||||
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||||
|
# on the original workspace that the command was run on.
|
||||||
|
#
|
||||||
|
# this is the default search menu
|
||||||
|
# set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||||
|
|
||||||
# Layout
|
# Layout
|
||||||
# window color class border backgr. text indicator child_border
|
# window color class border backgr. text indicator child_border
|
||||||
client.focused $bright_green $dark0_t $light0_hard $bright_orange $bright_green
|
client.focused $bright_green $dark0_t $light0_hard $bright_orange $bright_green
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user