feat(sway): add settings toggle mod+,

This commit is contained in:
max_richter 2021-11-24 17:45:58 +01:00
parent 3bea84ce68
commit 3e07ffe2ac
3 changed files with 40 additions and 4 deletions

View File

@ -22,7 +22,6 @@ return require("packer").startup(function()
use "kyazdani42/nvim-tree.lua" use "kyazdani42/nvim-tree.lua"
use "nvim-lua/popup.nvim" use "nvim-lua/popup.nvim"
use "mhinz/vim-startify" use "mhinz/vim-startify"
--use "lukas-reineke/indent-blankline.nvim"
use "karb94/neoscroll.nvim" use "karb94/neoscroll.nvim"
use "tpope/vim-fugitive" use "tpope/vim-fugitive"
@ -41,6 +40,8 @@ return require("packer").startup(function()
-- Obsidian / Roam like features -- Obsidian / Roam like features
-- use "lervag/wiki.vim" -- use "lervag/wiki.vim"
use "rhysd/vim-grammarous"
-- Lsp Errors -- Lsp Errors
use "folke/lsp-colors.nvim" use "folke/lsp-colors.nvim"
use "onsails/lspkind-nvim" use "onsails/lspkind-nvim"

View File

@ -15,14 +15,13 @@ set $up k
set $right l set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term alacritty set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu "rofi -combi-modi window,drun,ssh,run -show combi -show-icons" set $menu "rofi -combi-modi window,drun,ssh,run -show combi -show-icons"
set $powermenu "rofi -show p -modi p:~/.dotfiles/configs/rofi/rofi-power-menu -lines 6" set $powermenu "rofi -show p -modi p:~/.dotfiles/configs/rofi/rofi-power-menu -lines 6"
set $screenclip slurp | grim -g - ~/Pictures/Screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png set $screenclip slurp | grim -g - ~/Pictures/Screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png
set $screenshot grim ~/Pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png set $screenshot grim ~/Pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png
set $windowshot swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | $screenclip set $windowshot swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | $screenclip
set $settings gnome-control-center
set $toggle_layout ~/.config/sway/toggle_layout.sh set $toggle_layout ~/.config/sway/toggle_layout.sh
set $toggle_gaps ~/.config/sway/toggle_gaps.sh set $toggle_gaps ~/.config/sway/toggle_gaps.sh
@ -182,6 +181,7 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill
# Switch the current container between different layout styles # Switch the current container between different layout styles
bindsym $mod+w exec $toggle_layout bindsym $mod+w exec $toggle_layout
bindsym $mod+g exec $toggle_gaps bindsym $mod+g exec $toggle_gaps
bindsym $mod+Comma exec $settings
# Make the current focus fullscreen # Make the current focus fullscreen
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
@ -242,6 +242,8 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
exec_always nm-applet --indicator
# #
# Status Bar: # Status Bar:
# #

View File

@ -237,3 +237,36 @@ __main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None} __main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None} __main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None} __main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Received signal to stop, exiting
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}
__main__ DEBUG Arguments received {'verbose': 0, 'player': None}