sway: add wmrctl
This commit is contained in:
@@ -16,13 +16,13 @@ SFMono also provides icons.
|
|||||||
+ `wob` (progress bar)
|
+ `wob` (progress bar)
|
||||||
+ `wofi` (launcher)
|
+ `wofi` (launcher)
|
||||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||||
|
+ [`wmrctl`](https://git.sr.ht/~brocellous/wlrctl) (window switcher)
|
||||||
|
|
||||||
### other (used in scripts)
|
### other (used in scripts)
|
||||||
+ `fzf` (used in many places)
|
+ `fzf` (used in many places)
|
||||||
+ `ripgrep`
|
+ `ripgrep`
|
||||||
+ `ripgrep-all` (used in grep scripts)
|
+ `ripgrep-all` (used in grep scripts)
|
||||||
+ `fd` (rust find; used in scripts)
|
+ `fd` (rust find; used in scripts)
|
||||||
+ `fu` (find icons; not needed)
|
|
||||||
+ all `fcitx5` stuff (data, gtk, qt, mozc)
|
+ all `fcitx5` stuff (data, gtk, qt, mozc)
|
||||||
|
|
||||||
### theming stuff
|
### theming stuff
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
-- Treesitter with `:TSUpdate`
|
-- Treesitter with `:TSUpdate`
|
||||||
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
||||||
|
|
||||||
|
-- Don't load this in plugins.lua
|
||||||
|
vim.cmd("set termguicolors")
|
||||||
|
|
||||||
require 'plugins' -- Load plugins
|
require 'plugins' -- Load plugins
|
||||||
require 'settings' -- General settings
|
require 'settings' -- General settings
|
||||||
require 'mappings' -- Keyboard mappings
|
require 'mappings' -- Keyboard mappings
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ return require('packer').startup(function(use)
|
|||||||
use({
|
use({
|
||||||
'sainnhe/everforest',
|
'sainnhe/everforest',
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("set termguicolors")
|
|
||||||
vim.cmd("set background=light")
|
vim.cmd("set background=light")
|
||||||
vim.cmd("let g:everforest_background = 'hard'")
|
vim.cmd("let g:everforest_background = 'hard'")
|
||||||
vim.cmd("colorscheme everforest")
|
vim.cmd("colorscheme everforest")
|
||||||
|
|||||||
@@ -95,18 +95,33 @@ input type:keyboard {
|
|||||||
bindsym $mod+Shift+Backspace kill
|
bindsym $mod+Shift+Backspace kill
|
||||||
|
|
||||||
# wofi
|
# wofi
|
||||||
set $files fd -I "\.pdf$" $HOME | cut -f 4- -d "/"
|
# show normal applications
|
||||||
set $lock_screen \
|
|
||||||
printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nswaymsg reload\nshutdown now\nloginctl terminate-user marc"
|
|
||||||
bindsym $mod+d exec wofi --show drun -p 'Open application'
|
bindsym $mod+d exec wofi --show drun -p 'Open application'
|
||||||
|
|
||||||
|
# show binaries in PATH
|
||||||
bindsym $mod+Shift+d exec wofi --show run -p 'dmenu'
|
bindsym $mod+Shift+d exec wofi --show run -p 'dmenu'
|
||||||
bindsym $mod+p exec $files \
|
|
||||||
|
# show all pdfs in HOME
|
||||||
|
bindsym $mod+p exec \
|
||||||
|
fd -I "\.pdf$" $HOME \
|
||||||
|
| cut -f 4- -d "/" \
|
||||||
| wofi -d -p 'Search pdfs' -W 70% \
|
| wofi -d -p 'Search pdfs' -W 70% \
|
||||||
| xargs -d '\n' -r xdg-open
|
| xargs -d '\n' -r xdg-open
|
||||||
bindsym $mod+Ctrl+Backspace exec $lock_screen \
|
|
||||||
|
# show shutdown menu
|
||||||
|
bindsym $mod+Ctrl+Backspace exec \
|
||||||
|
printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nswaymsg reload\nshutdown now\nloginctl terminate-user marc" \
|
||||||
| wofi -d -p "Power" -L 6 \
|
| wofi -d -p "Power" -L 6 \
|
||||||
| xargs -d '\n' -r /bin/bash -c
|
| xargs -d '\n' -r /bin/bash -c
|
||||||
|
|
||||||
|
# switch windows
|
||||||
|
bindsym $mod+w exec \
|
||||||
|
wlrctl window list \
|
||||||
|
| awk '{print $1}' \
|
||||||
|
| sed 's/://' \
|
||||||
|
| wofi --dmenu \
|
||||||
|
| xargs -r wlrctl window focus
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
|
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
|
||||||
bindsym $mod+Ctrl+Shift+s exec grim -g "$(slurp)" - | swappy -f -
|
bindsym $mod+Ctrl+Shift+s exec grim -g "$(slurp)" - | swappy -f -
|
||||||
|
|||||||
Reference in New Issue
Block a user