Commit 4657224c authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Simplified rofi and remove previous tab based bindsyms.

parent 113c85be
...@@ -129,8 +129,7 @@ bindsym $mod+Shift+q kill ...@@ -129,8 +129,7 @@ bindsym $mod+Shift+q kill
# start program launcher # start program launcher
#bindsym $mod+d exec --no-startup-id dmenu_recency #bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym $mod_next+d exec --no-startup-id "rofi -show-icons -modi window,drun -show drun -scroll-method 1 -kb-row-tab \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'" bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi window,drun -show window -scroll-method 1 -kb-row-tab \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"DejaVu Sans Mono 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi window,drun -show window -scroll-method 1 -kb-row-tab \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
# instant layout # instant layout
# REQUIRES i3-instant-layout and XDOTOOL # REQUIRES i3-instant-layout and XDOTOOL
...@@ -210,11 +209,11 @@ bindsym $mod+minus scratchpad show ...@@ -210,11 +209,11 @@ bindsym $mod+minus scratchpad show
# move window to mark (by workspace) # move window to mark (by workspace)
# requires jq # requires jq
set $setwn wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num'); #set $setwn wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num');
bindsym $mod+Tab exec --no-startup-id "$setwn i3-msg \\"[con_mark=\\"$wn\\"] focus, focus child\\"" #bindsym $mod+Tab exec --no-startup-id "$setwn i3-msg \\"[con_mark=\\"$wn\\"] focus, focus child\\""
bindsym $mod+Shift+Tab exec --no-startup-id "$setwn mwn=$(echo \\"m$wn\\"); i3-msg \\"mark $mwn, [con_mark=\\"$mwn\\"] move window to mark $wn, unmark $mwn\\" #bindsym $mod+Shift+Tab exec --no-startup-id "$setwn mwn=$(echo \\"m$wn\\"); i3-msg \\"mark $mwn, [con_mark=\\"$mwn\\"] move window to mark $wn, unmark $mwn\\"
bindsym $mod+Escape exec --no-startup-id "$setwn i3-msg \\"[workspace=__focused__] move window to mark $wn\\" #bindsym $mod+Escape exec --no-startup-id "$setwn i3-msg \\"[workspace=__focused__] move window to mark $wn\\"
bindsym $mod+$mod_next+Tab exec --no-startup-id "$setwn i3-msg \\"split h, layout stacking reverse, focus parent, mark --add --toggle $wn, focus child\\" #bindsym $mod+$mod_next+Tab exec --no-startup-id "$setwn i3-msg \\"split h, layout stacking reverse, focus parent, mark --add --toggle $wn, focus child\\"
# mark and focus # mark and focus
bindsym $mod+Ctrl+1 mark --add --toggle 1 bindsym $mod+Ctrl+1 mark --add --toggle 1
...@@ -302,6 +301,11 @@ set $ws6 number 6:6 ...@@ -302,6 +301,11 @@ set $ws6 number 6:6
set $ws7 number 7:7 set $ws7 number 7:7
set $ws8 number 8:8 set $ws8 number 8:8
# switching back and forth
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+Shift+Tab move container to workspace back_and_forth
bindsym $mod+$mod_next+Tab move container to workspace back_and_forth; workspace back_and_forth
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $ws1 bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2 bindsym $mod+2 workspace $ws2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment