feat(desktop): i3-switch-tabs, update manifests

This commit is contained in:
Pavel Korytov 2021-10-04 11:21:26 +03:00
parent 20af706fa2
commit 3331e30435
5 changed files with 41 additions and 23 deletions

View file

@ -1,5 +1,6 @@
(specifications->manifest (specifications->manifest
'( '(
"xev"
"gparted" "gparted"
"gnome-disk-utility" "gnome-disk-utility"
"anydesk" "anydesk"
@ -43,6 +44,7 @@
"bind:utils" "bind:utils"
"polybar" "polybar"
"python-i3-balance-workspace" "python-i3-balance-workspace"
"rust-i3-switch-tabs"
"i3-gaps" "i3-gaps"
"xinput" "xinput"
"xgamma" "xgamma"

View file

@ -1,5 +1,6 @@
(specifications->manifest (specifications->manifest
'( '(
"sbcl"
"make" "make"
"hugo-extended" "hugo-extended"
"libfaketime" "libfaketime"

View file

@ -1,5 +1,8 @@
(specifications->manifest (specifications->manifest
'( '(
"inkscape"
"kdenlive"
"ffmpeg"
"krita" "krita"
"gimp" "gimp"
"libreoffice")) "libreoffice"))

View file

@ -60,40 +60,45 @@ bindsym $mod+v exec emacs-i3-integration split v
# Managing windows:4 ends here # Managing windows:4 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:5]] # [[file:../../Desktop.org::*Managing windows][Managing windows:5]]
# enter fullscreen mode for the focused container bindsym $mod+period exec i3-switch-tabs right
bindsym $mod+f fullscreen toggle bindsym $mod+comma exec i3-switch-tabs left
bindsym $mod+c fullscreen toggle global
# Managing windows:5 ends here # Managing windows:5 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:6]] # [[file:../../Desktop.org::*Managing windows][Managing windows:6]]
bindsym $mod+w layout stacking # enter fullscreen mode for the focused container
bindsym $mod+t layout tabbed bindsym $mod+f fullscreen toggle
bindsym $mod+e exec emacs-i3-integration layout toggle split bindsym $mod+c fullscreen toggle global
# Managing windows:6 ends here # Managing windows:6 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:7]] # [[file:../../Desktop.org::*Managing windows][Managing windows:7]]
bindsym $mod+Shift+f floating toggle bindsym $mod+w layout stacking
bindsym $mod+z focus mode_toggle bindsym $mod+t layout tabbed
bindsym $mod+e exec emacs-i3-integration layout toggle split
# Managing windows:7 ends here # Managing windows:7 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:8]] # [[file:../../Desktop.org::*Managing windows][Managing windows:8]]
bindsym $mod+Tab move workspace to output right bindsym $mod+Shift+f floating toggle
bindsym $mod+q focus output right bindsym $mod+z focus mode_toggle
# Managing windows:8 ends here # Managing windows:8 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:9]] # [[file:../../Desktop.org::*Managing windows][Managing windows:9]]
bindsym $mod+a focus parent bindsym $mod+Tab move workspace to output right
bindsym $mod+Shift+A focus child bindsym $mod+q focus output right
# Managing windows:9 ends here # Managing windows:9 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:10]] # [[file:../../Desktop.org::*Managing windows][Managing windows:10]]
bindsym $mod+i sticky toggle bindsym $mod+a focus parent
bindsym $mod+Shift+A focus child
# Managing windows:10 ends here # Managing windows:10 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:11]] # [[file:../../Desktop.org::*Managing windows][Managing windows:11]]
bindsym $mod+x floating enable; sticky enable; move position 1220 0; resize set width 700 px bindsym $mod+i sticky toggle
# Managing windows:11 ends here # Managing windows:11 ends here
# [[file:../../Desktop.org::*Managing windows][Managing windows:12]]
bindsym $mod+x floating enable; sticky enable; move position 1220 0; resize set width 700 px
# Managing windows:12 ends here
# [[file:../../Desktop.org::*Workspaces][Workspaces:1]] # [[file:../../Desktop.org::*Workspaces][Workspaces:1]]
set $w1 "1 🚀" set $w1 "1 🚀"
set $w2 "2 🌍" set $w2 "2 🌍"
@ -126,10 +131,6 @@ bindsym $mod+Shift+7 move container to workspace $w7
bindsym $mod+Shift+8 move container to workspace $w8 bindsym $mod+Shift+8 move container to workspace $w8
bindsym $mod+Shift+9 move container to workspace $w9 bindsym $mod+Shift+9 move container to workspace $w9
bindsym $mod+Shift+0 move container to workspace $w10 bindsym $mod+Shift+0 move container to workspace $w10
# Cycle workspaces
bindsym $mod+comma workspace prev
bindsym $mod+period workspace next
# Workspaces:1 ends here # Workspaces:1 ends here
# [[file:../../Desktop.org::*Rules][Rules:1]] # [[file:../../Desktop.org::*Rules][Rules:1]]

View file

@ -281,6 +281,10 @@ bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
#+end_src #+end_src
** Managing windows ** Managing windows
| Guix dependency |
|---------------------|
| rust-i3-switch-tabs |
Some keybindings for managing windows. Some keybindings for managing windows.
=emacs-i3-integration= is a script to pass some command to Emacs to get a consistent set of keybindings in both i3 and Emacs. Check out [[file:Emacs.org::i3 integration][the section in Emacs.org]] for details. =emacs-i3-integration= is a script to pass some command to Emacs to get a consistent set of keybindings in both i3 and Emacs. Check out [[file:Emacs.org::i3 integration][the section in Emacs.org]] for details.
@ -322,6 +326,12 @@ bindsym $mod+s exec emacs-i3-integration split h
bindsym $mod+v exec emacs-i3-integration split v bindsym $mod+v exec emacs-i3-integration split v
#+end_src #+end_src
Switch tabs
#+begin_src conf-space
bindsym $mod+period exec i3-switch-tabs right
bindsym $mod+comma exec i3-switch-tabs left
#+end_src
Enter fullscreen mode Enter fullscreen mode
#+begin_src conf-space #+begin_src conf-space
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
@ -396,10 +406,6 @@ bindsym $mod+Shift+7 move container to workspace $w7
bindsym $mod+Shift+8 move container to workspace $w8 bindsym $mod+Shift+8 move container to workspace $w8
bindsym $mod+Shift+9 move container to workspace $w9 bindsym $mod+Shift+9 move container to workspace $w9
bindsym $mod+Shift+0 move container to workspace $w10 bindsym $mod+Shift+0 move container to workspace $w10
# Cycle workspaces
bindsym $mod+comma workspace prev
bindsym $mod+period workspace next
#+end_src #+end_src
** Rules ** Rules
@ -2128,12 +2134,15 @@ This section generates manifests for various desktop software that I'm using.
|----------+--------------------| |----------+--------------------|
| browsers | ungoogled-chromium | | browsers | ungoogled-chromium |
| browsers | firefox | | browsers | firefox |
** Office ** Office & Multimedia
| Category | Guix dependency | | Category | Guix dependency |
|----------+-----------------| |----------+-----------------|
| office | libreoffice | | office | libreoffice |
| office | gimp | | office | gimp |
| office | krita | | office | krita |
| office | ffmpeg |
| office | kdenlive |
| office | inkscape |
** LaTeX ** LaTeX
| Category | Guix dependency | | Category | Guix dependency |
|----------+-------------------------------| |----------+-------------------------------|
@ -2158,6 +2167,7 @@ This section generates manifests for various desktop software that I'm using.
| dev | libfaketime | | dev | libfaketime |
| dev | hugo-extended | | dev | hugo-extended |
| dev | make | | dev | make |
| dev | sbcl |
** Manifests ** Manifests
#+NAME: packages #+NAME: packages
#+begin_src emacs-lisp :tangle no :var category="" #+begin_src emacs-lisp :tangle no :var category=""
@ -2482,6 +2492,7 @@ Other desktop programs I use are listed below.
| anydesk | Remote desktop software | | anydesk | Remote desktop software |
| gnome-disk-utility | Manage disks | | gnome-disk-utility | Manage disks |
| gparted | Manage partitions | | gparted | Manage partitions |
| xev | Test input |
#+NAME: packages #+NAME: packages
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no