rofi call bug fixe, minor changes
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
. ~/.config/i3/env
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
echo "usage: create_workspaces"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ $# -ne 0 ]; then
|
|
||||||
usage; exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${SECONDARY_OUTPUT}" ]; then
|
|
||||||
for i in $(seq 11 19); do
|
|
||||||
i3-msg -q workspace number $i
|
|
||||||
i3-msg -q move workspace to output ${SECONDARY_OUTPUT}
|
|
||||||
done
|
|
||||||
i3-msg -q workspace number 11
|
|
||||||
fi
|
|
||||||
if [ -n "${PRIMARY_OUTPUT}" ]; then
|
|
||||||
for i in $(seq 1 9); do
|
|
||||||
i3-msg -q workspace number $i
|
|
||||||
i3-msg -q move workspace to output ${SECONDARY_OUTPUT}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
i3-msg -q workspace number 1
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
NEW_NAME=$(rofi -p "Tag name" -lines 1 -dmenu)
|
NEW_NAME=$(rofi -p "Tag name" -lines 1 -dmenu -config ~/.config/rofi/config)
|
||||||
OLD_NAME=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name')
|
OLD_NAME=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name')
|
||||||
WORKSPACE_NUMBER=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
|
WORKSPACE_NUMBER=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ROFI_INPUT=1 ~/.config/i3/bin/focus_workspace $(i3-msg -t get_workspaces | jq '.[]' | jq -r '.name' | sort -n | rofi -dmenu -p "Select workspace:" | sed 's/:.*//')
|
ROFI_INPUT=1 ~/.config/i3/bin/focus_workspace $(i3-msg -t get_workspaces | jq '.[]' | jq -r '.name' | sort -n | rofi -dmenu -p "Select workspace:" -config ~/.config/rofi/config | sed 's/:.*//')
|
||||||
|
|||||||
@@ -18,5 +18,7 @@ if [ $1 -gt 0 ] && [ $1 -lt 43 ]; then
|
|||||||
else
|
else
|
||||||
usage; exit 1
|
usage; exit 1
|
||||||
fi
|
fi
|
||||||
|
NEXT_WORKSPACE_NAME=$(i3-msg -t get_workspaces | jq -r ".[] | select(.num==${NEXT_WORKSPACE}).name")
|
||||||
|
if [ -z "${NEXT_WORKSPACE_NAME}" ]; then NEXT_WORKSPACE_NAME=${NEXT_WORKSPACE}; fi
|
||||||
|
|
||||||
i3-msg -q "move container to workspace ${NEXT_WORKSPACE}"
|
i3-msg -q "move container to workspace ${NEXT_WORKSPACE_NAME}"
|
||||||
|
|||||||
8
config
8
config
@@ -2,12 +2,11 @@ set $mod Mod4
|
|||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
exec --no-startup-id ~/.config/i3/bin/auto-outputs
|
exec --no-startup-id ~/.config/i3/bin/auto-outputs
|
||||||
exec --no-startup-id ~/.config/i3/bin/create_workspaces
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# Visual #
|
# Visual #
|
||||||
##########
|
##########
|
||||||
font pango:Ubuntu Mono 16
|
font pango:DejaVu Sans Mono 12
|
||||||
exec --no-startup-id feh --bg-scale ~/.wallpaper
|
exec --no-startup-id feh --bg-scale ~/.wallpaper
|
||||||
hide_edge_borders smart
|
hide_edge_borders smart
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
@@ -38,8 +37,9 @@ bindsym $mod+Return exec kitty
|
|||||||
bindsym $mod+e exec emacsclient -c -n
|
bindsym $mod+e exec emacsclient -c -n
|
||||||
# Some menus
|
# Some menus
|
||||||
bindsym $mod+F1 exec ~/.config/i3/bin/menu_workspace_name
|
bindsym $mod+F1 exec ~/.config/i3/bin/menu_workspace_name
|
||||||
bindsym $mod+F2 exec rofi -modi run -show run
|
bindsym $mod+F2 exec rofi -modi run -show run -config ~/.config/rofi/config
|
||||||
bindsym $mod+F3 exec ~/.scripts/generate-rofi-ssh && rofi -lines 50 -modi ssh -show ssh
|
bindsym $mod+F3 exec ~/.scripts/generate-rofi-ssh && rofi -lines 50 -modi ssh -show ssh -config ~/.config/rofi/config
|
||||||
|
bindsym $mod+Control+F3 exec ~/.scripts/generate-rofi-ssh && SSH_OPTIONS=-A rofi -lines 50 -modi ssh -show ssh -config ~/.config/rofi/config
|
||||||
bindsym $mod+j exec ~/.config/i3/bin/menu_workspace_switch
|
bindsym $mod+j exec ~/.config/i3/bin/menu_workspace_switch
|
||||||
# change container layout (tabbed, toggle split)
|
# change container layout (tabbed, toggle split)
|
||||||
bindsym $mod+space layout toggle tabbed splith
|
bindsym $mod+space layout toggle tabbed splith
|
||||||
|
|||||||
@@ -19,6 +19,5 @@ battery all {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tztime local {
|
tztime local {
|
||||||
format = "<span background='#222222'>%time</span>"
|
format = "<span background='#222222'>%d-%m-%Y %H:%M</span>"
|
||||||
format_time = "%d-%m-%Y %H:%M"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user