Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
berezowski authored Sep 25, 2024
1 parent 417a16f commit 95893c3
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,20 +327,21 @@ https://github.com/user-attachments/assets/7169c4ec-6c15-4ab4-a7ec-35b221379996


4. #### edit sway config
```> grep swaymsg_workspace ~/.config/sway/config```
```
> cat ~/.config/sway/config | grep swaymsg_workspace
### swaymsg_workspace select previous / next
bindsym Mod1+Ctrl+n exec ~/.cargo/bin/swaymsg_workspace next
bindsym Mod1+Ctrl+p exec ~/.cargo/bin/swaymsg_workspace prev
### swaymsg_workspace move workspace left / right
bindsym Mod1+Ctrl+Shift+n exec ~/.cargo/bin/swaymsg_workspace swap_with_next
bindsym Mod1+Ctrl+Shift+p exec ~/.cargo/bin/swaymsg_workspace swap_with_prev
### swaymsg_workspace increase / decrease number
bindsym Mod1+Ctrl+f exec ~/.cargo/bin/swaymsg_workspace decrease
bindsym Mod1+Ctrl+g exec ~/.cargo/bin/swaymsg_workspace increase
bindsym Mod1+Ctrl+n exec ~/.cargo/bin/swaymsg_workspace next
bindsym Mod1+Ctrl+p exec ~/.cargo/bin/swaymsg_workspace prev
bindsym --release Mod1+Ctrl+r exec ~/.cargo/bin/swaymsg_workspace rename_to $(rofi -dmenu -l 0 -P "rename workspace $(~/.cargo/bin/swaymsg_workspace print_focused_name) to")
bindsym --release Mod1+Ctrl+space exec /usr/bin/rofi -show combi
### swaymsg_workspace select by number
bindsym Mod1+Ctrl+0 exec ~/.cargo/bin/swaymsg_workspace number 10
bindsym Mod1+Ctrl+1 exec ~/.cargo/bin/swaymsg_workspace number 1
bindsym Mod1+Ctrl+2 exec ~/.cargo/bin/swaymsg_workspace number 2
Expand All @@ -351,6 +352,8 @@ https://github.com/user-attachments/assets/7169c4ec-6c15-4ab4-a7ec-35b221379996
bindsym Mod1+Ctrl+7 exec ~/.cargo/bin/swaymsg_workspace number 7
bindsym Mod1+Ctrl+8 exec ~/.cargo/bin/swaymsg_workspace number 8
bindsym Mod1+Ctrl+9 exec ~/.cargo/bin/swaymsg_workspace number 9
### swaymsg_workspace move container to workspace number
bindsym Mod1+Ctrl+Shift+0 exec ~/.cargo/bin/swaymsg_workspace move_container_to_workspace_number 10
bindsym Mod1+Ctrl+Shift+1 exec ~/.cargo/bin/swaymsg_workspace move_container_to_workspace_number 1
bindsym Mod1+Ctrl+Shift+2 exec ~/.cargo/bin/swaymsg_workspace move_container_to_workspace_number 2
Expand All @@ -365,9 +368,15 @@ https://github.com/user-attachments/assets/7169c4ec-6c15-4ab4-a7ec-35b221379996
```

#### rofi config
```> grep rofi ~/.config/sway/config```
```
bindsym --release Mod1+Ctrl+space exec /usr/bin/rofi -show combi
bindsym Mod1+Ctrl+r exec ~/.cargo/bin/swaymsg_workspace rename_to $(rofi -dmenu -l 0 -P "rename workspace $(~/.cargo/bin/swaymsg_workspace print_focused_name) to")
```


```> cat ~/.config/rofi/config.rasi```
```
> cat ~/.config/rofi/config.rasi
configuration {
modi: "combi,move to workspace:~/.cargo/bin/swaymsg_workspace rofi_move_window";
font: "M+CodeLat60 Nerd Font Mono 12";
Expand Down

0 comments on commit 95893c3

Please sign in to comment.