summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-23 01:11:41 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-23 03:08:42 -0400
commit6e4087f395690c658674e6bf1567e9639112e5da (patch)
treeeb1d3cceb45310c4aa3f1637c3bf06365c52500c
parentda40af5a2492be6b72e563976f6f00ff05d8b630 (diff)
downloadconf-6e4087f395690c658674e6bf1567e9639112e5da.tar.gz
conf-6e4087f395690c658674e6bf1567e9639112e5da.zip
turn off focus wrapping
being forced to live without it on osx, i'm realizing how it's actually more confusing than convenient it actually is
-rwxr-xr-xbin/i3-switch-workspace11
-rw-r--r--i3/config2
2 files changed, 3 insertions, 10 deletions
diff --git a/bin/i3-switch-workspace b/bin/i3-switch-workspace
index a90be29..8e77cf2 100755
--- a/bin/i3-switch-workspace
+++ b/bin/i3-switch-workspace
@@ -46,16 +46,10 @@ elsif ($workspace_data->[0]{focused} && $dir eq 'prev') {
my $tree_data = $json->decode(i3_msg('get_tree'));
my $workspace_tree = find_workspace($tree_data, $current_workspace);
if (@{ $workspace_tree->{nodes} } || @{ $workspace_tree->{floating_nodes} }) {
- if ($prev_workspace < 0) {
- i3_msg('command', "workspace number $next_workspace");
- }
- else {
+ if ($prev_workspace > 0) {
i3_msg('command', "workspace number $prev_workspace");
}
}
- else {
- i3_msg('command', "workspace $dir");
- }
}
elsif ($workspace_data->[-1]{focused} && $dir eq 'next') {
my $current_workspace = $workspace_data->[-1]{num};
@@ -64,9 +58,6 @@ elsif ($workspace_data->[-1]{focused} && $dir eq 'next') {
if (@{ $workspace_tree->{nodes} } || @{ $workspace_tree->{floating_nodes} }) {
i3_msg('command', "workspace number $next_workspace");
}
- else {
- i3_msg('command', "workspace $dir");
- }
}
else {
for my $i (0..$#$workspace_data) {
diff --git a/i3/config b/i3/config
index fab81a3..9db3e06 100644
--- a/i3/config
+++ b/i3/config
@@ -21,6 +21,8 @@ client.urgent #ff0000 #ff0000 #ffffff #ff0000
floating_minimum_size 1 x 1
floating_maximum_size -1 x -1
+focus_wrapping no
+
# floats
for_window [class="Xmessage"] floating enable
for_window [class="qemu"] floating enable