Compare commits
No commits in common. "bd40b3cdd5e54eb03c88cec9651d1e33263ba208" and "1f3ac280d0635ebe9c6c64430f6e8da9d4ca84d7" have entirely different histories.
bd40b3cdd5
...
1f3ac280d0
@ -45,11 +45,8 @@ 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...
|
||||
focus_wrapping no
|
||||
|
||||
# include the modes - to be mapped in keybinding.conf
|
||||
include $swayconfig/modes.conf
|
||||
|
||||
# include all the keybindings
|
||||
include $swayconfig/keybinding.conf
|
||||
include $HOME/.config/sway/keybinding.conf
|
||||
|
||||
##########
|
||||
# PROGRAMS
|
||||
@ -60,25 +57,25 @@ assign [class="Thunderbird"] $ws2
|
||||
######################
|
||||
# MODES
|
||||
######################
|
||||
#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
|
||||
# # Ditto, with arrow keys
|
||||
# bindsym $left_alt resize shrink width 10px
|
||||
# bindsym $down_alt resize grow height 10px
|
||||
# bindsym $up_alt resize shrink height 10px
|
||||
# bindsym Right resize grow width 10px
|
||||
# # Return to default mode
|
||||
# bindsym Return mode "default"
|
||||
# bindsym Escape mode "default"
|
||||
#}
|
||||
# bindsym $mod+r mode "resize"
|
||||
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
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# lock / logout / sleep / hibernate / restart / poweroff
|
||||
# TODO convert this to swaylock
|
||||
|
||||
@ -39,20 +39,20 @@ bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+$left_alt focus left
|
||||
bindsym $mod+$down_alt focus down
|
||||
bindsym $mod+$up_alt focus up
|
||||
bindsym $mod+$right_alt focus right
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
bindsym $mod+Shift+$left_alt move left
|
||||
bindsym $mod+Shift+$down_alt move down
|
||||
bindsym $mod+Shift+$up_alt move up
|
||||
bindsym $mod+Shift+$right_alt move right
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
# move workspace to left and right monitors
|
||||
bindsym $mod+Shift+bracketleft move workspace to output left
|
||||
bindsym $mod+Shift+bracketright move workspace to output right
|
||||
@ -134,17 +134,3 @@ $bindsym $mod+question exec $help
|
||||
|
||||
# allow to kill focused floating shell windows using Esc (manjaro)
|
||||
$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
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
# 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,17 +5,27 @@ set $unbindsym unbindsym --to-code
|
||||
|
||||
# background
|
||||
set $background $HOME/pictures/wallpapers/iceland.jpg
|
||||
|
||||
# directories
|
||||
set $swayconfig $HOME/.config/sway
|
||||
set $swayscripts $swayconfig/scripts
|
||||
|
||||
|
||||
###
|
||||
### Variables
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
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
|
||||
set $dark0_hard #1d2021
|
||||
set $dark0_hard_t #1d2021e6
|
||||
@ -58,37 +68,6 @@ set $faded_aqua #427b58
|
||||
set $faded_orange #af3a03
|
||||
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
|
||||
# window color class border backgr. text indicator child_border
|
||||
client.focused $bright_green $dark0_t $light0_hard $bright_orange $bright_green
|
||||
|
||||
Loading…
Reference in New Issue
Block a user