aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i3/.config/i3/config17
-rw-r--r--polybar/.config/polybar/config2
-rwxr-xr-xrofi/rename.sh7
3 files changed, 18 insertions, 8 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 97d82f2..58df58b 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -97,7 +97,8 @@ font pango:DejaVu Sans Mono 5
floating_modifier $mod
# start a terminal
-bindsym $mod+Return exec urxvtcd
+#bindsym $mod+Return exec urxvtcd
+bindsym $mod+Return exec kitty
#bindsym $mod+Return exec python3 /home/sebastien/Projets/kitty/__main__.py -1
#bindsym $mod+Return exec /usr/local/bin/tabbed -c -r 2 st -w ''
#bindsym $mod+Return exec /usr/local/bin/tabbed -c urxvtcd -embed
@@ -111,15 +112,16 @@ bindsym $mod+i exec rofi -show run -show-icons
# bindsym $mod+i exec synapse
-bindsym $modAltkey+Tab exec rofi -show window
+bindsym $modAltkey+Tab exec --no-startup-id "rofi -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show window"
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="rofi -dmenu -p run"
-bindsym $mod+W exec --no-startup-id "rofi -modi \\"window,Workspaces:/home/sebastien/dotfiles/rofi/workspaces.sh\\" -show Workspaces"
+bindsym $mod+W exec --no-startup-id "rofi -lines 5 -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show Workspaces"
+bindsym $mod+r exec --no-startup-id "rofi -lines 5 -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show Renommer"
# change focus
-bindsym $mod+t focus left
-bindsym $mod+s focus down
-bindsym $mod+r focus up
-bindsym $mod+n focus right
+# bindsym $mod+t focus left
+# bindsym $mod+s focus down
+# bindsym $mod+r focus up
+# bindsym $mod+n focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@@ -238,6 +240,7 @@ mode $mode_resize {
bindsym $mod+o mode $mode_resize
bindsym $modAltkey+Escape workspace back_and_forth
+bindsym shift+$modAltkey+Escape move container to workspace back_and_forth
bindsym shift+XF86HomePage exec pcmanfm-qt
assign [class="Microsoft Teams"] $Teams
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config
index aa18975..6eb86f0 100644
--- a/polybar/.config/polybar/config
+++ b/polybar/.config/polybar/config
@@ -156,7 +156,7 @@ ws-icon-16 = 99:;
ws-icon-17 = 100:;
ws-icon-18 = 101:;
ws-icon-19 = 102:;
-ws-icon-default = 
+;ws-icon-default = 
; Separator in between workspaces
#label-separator = " "
diff --git a/rofi/rename.sh b/rofi/rename.sh
new file mode 100755
index 0000000..dcdbcd8
--- /dev/null
+++ b/rofi/rename.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ -z $1 ]; then
+ exit 0
+else
+ i3-msg "rename workspace to ${1}" > /dev/null
+ exit 1
+fi