add command to switch keyboard layouts
This commit is contained in:
parent
5cf2ccafa3
commit
23056ef6d9
@ -1,2 +1,5 @@
|
||||
# https://wiki.archlinux.org/title/Xorg/Keyboard_configuration
|
||||
setxkbmap -layout us,in -variant ,mal -option grp:win_space_toggle
|
||||
|
||||
# z-eyes
|
||||
~/z-eyes.sh &
|
||||
|
@ -91,6 +91,10 @@
|
||||
;; Set default evil-mode states for a few modes
|
||||
(evil-set-initial-state 'package-menu-mode 'normal)
|
||||
(evil-set-initial-state 'calendar-mode 'emacs)
|
||||
(evil-set-initial-state 'message-mode 'emacs)
|
||||
(evil-set-initial-state 'completion-list-mode 'emacs)
|
||||
(evil-set-initial-state 'help-mode 'emacs)
|
||||
(evil-set-initial-state 'buffer-menu-mode 'emacs)
|
||||
;
|
||||
;; Make :q not quit entire emacs and just try to delete current split
|
||||
(evil-ex-define-cmd "q[uit]" 'evil-window-delete )
|
||||
|
@ -69,6 +69,9 @@
|
||||
(define-key org-agenda-mode-map (kbd "l") 'evil-forward-char)
|
||||
(define-key org-agenda-mode-map (kbd "C-c C-l") 'org-agenda-log-mode)
|
||||
|
||||
(define-key org-agenda-mode-map "n" 'org-agenda-later)
|
||||
(define-key org-agenda-mode-map "p" 'org-agenda-earlier)
|
||||
|
||||
(setup-vi-keys-for-splits org-agenda-mode-map))
|
||||
|
||||
(defun setup-doc-view ()
|
||||
|
@ -148,3 +148,40 @@ hc keybind $Mod-d spawn dmenu_run_hlwm
|
||||
|
||||
# Go to last active tag
|
||||
hc keybind $Mod-m use_previous
|
||||
|
||||
# Go to next or last tag
|
||||
hc keybind $Mod-n use_index +1 --skip-visible
|
||||
hc keybind $Mod-p use_index -1 --skip-visible
|
||||
|
||||
# Rules
|
||||
hc rule focus=on # normally focus new clients
|
||||
|
||||
# Keys for screenshot
|
||||
# https://github.com/fdietze/dotfiles/blob/master/.config/herbstluftwm/autostart
|
||||
#hc keybind Print spawn scrot 'screenshots/%Y-%m-%d_%H-%M-%S_$wx$h.png' --exec 'notify-send --expire-time=2000 "Fullscreen Screenshot Saved."'
|
||||
#hc keybind $Mod-Print spawn scrot 'screenshots/%Y-%m-%d_%H-%M-%S_$wx$h.png' --focused --exec 'notify-send --expire-time=2000 "Window screenshot Saved."'
|
||||
#hc keybind $Mod-Ctrl-Print spawn scrot 'screenshots/%Y-%m-%d_%H-%M-%S_$wx$h.png' --select --exec 'notify-send --expire-time=2000 "Area Screenshot Saved."'
|
||||
hc keybind Print spawn gnome-screenshot
|
||||
hc keybind Shift-Print spawn gnome-screenshot '-a'
|
||||
hc keybind Control-Print spawn gnome-screenshot '-w'
|
||||
|
||||
|
||||
# Adjust screen brightness
|
||||
hc keybind XF86MonBrightnessUp spawn xbacklight -inc 1%
|
||||
hc keybind XF86MonBrightnessDown spawn xbacklight -dec 1%
|
||||
|
||||
|
||||
# Adjust volume
|
||||
#hc keybind XF86AudioLowerVolume spawn pavolume-dunst decrease 5
|
||||
#hc keybind XF86AudioRaiseVolume spawn pavolume-dunst increase 5
|
||||
#hc keybind Shift-XF86AudioLowerVolume spawn pavolume-dunst decrease 5 --allow-boost
|
||||
#hc keybind Shift-XF86AudioRaiseVolume spawn pavolume-dunst increase 5 --allow-boost
|
||||
#hc keybind XF86AudioMute spawn pavolume-dunst mute
|
||||
|
||||
#hc keybind XF86AudioPlay spawn playerctl play-pause
|
||||
#hc keybind XF86AudioPrev spawn playerctl previous
|
||||
#hc keybind XF86AudioNext spawn playerctl next
|
||||
|
||||
# Lock screen
|
||||
hc keybind Control-Shift-l spawn bash -c 'i3lock -c 000000 && exec sleep 5s && exec systemctl suspend'
|
||||
hc keybind Mod4-l spawn i3lock -c 444444
|
||||
|
@ -47,7 +47,7 @@ c.new_instance_open_target = 'window'
|
||||
|
||||
## Shorthand to choose search engine
|
||||
c.url.searchengines['g'] = 'https://www.google.com/search?q={}'
|
||||
c.url.searchengines['w'] = 'https://en.wikipedia.org/w/index.php?search={}'
|
||||
c.url.searchengines['@w'] = 'https://en.wikipedia.org/w/index.php?search={}'
|
||||
|
||||
## Set external editor
|
||||
#c.editor.command = ['gvim', '{}']
|
||||
@ -72,6 +72,9 @@ with config.pattern("*://.youtube.com") as youtube:
|
||||
with config.pattern("*//.amazon.*") as amazon:
|
||||
amazon.content.cookies.accept = "never"
|
||||
|
||||
# Temporary workaround to prevent some websites from crashing qute
|
||||
c.qt.workarounds.remove_service_workers = True
|
||||
|
||||
## Statusbar
|
||||
#c.statusbar.widgets[-1] = f"text:TEST"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user