summaryrefslogtreecommitdiffstats
path: root/bin
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 /bin
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/i3-switch-workspace11
1 files changed, 1 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) {