mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-11 10:31:13 +10:00
Adding key chords to qtile.
This commit is contained in:
+13
-83
@@ -20,8 +20,8 @@ keys = [
|
|||||||
desc='Launches My Terminal'
|
desc='Launches My Terminal'
|
||||||
),
|
),
|
||||||
Key([mod, "shift"], "Return",
|
Key([mod, "shift"], "Return",
|
||||||
# lazy.spawn("dmenu_run -p 'Run: '"),
|
lazy.spawn("dmenu_run -p 'Run: '"),
|
||||||
lazy.spawn("rofi -show drun -config ~/.config/rofi/themes/dt-dmenu.rasi -display-drun \"Run: \" -drun-display-format \"{name}\""),
|
# lazy.spawn("rofi -show drun -config ~/.config/rofi/themes/dt-dmenu.rasi -display-drun \"Run: \" -drun-display-format \"{name}\""),
|
||||||
desc='Run Launcher'
|
desc='Run Launcher'
|
||||||
),
|
),
|
||||||
Key([mod], "Tab",
|
Key([mod], "Tab",
|
||||||
@@ -132,87 +132,17 @@ keys = [
|
|||||||
lazy.layout.toggle_split(),
|
lazy.layout.toggle_split(),
|
||||||
desc='Toggle between split and unsplit sides of stack'
|
desc='Toggle between split and unsplit sides of stack'
|
||||||
),
|
),
|
||||||
### Dmenu scripts launched with ALT + CTRL + KEY
|
# Dmenu scripts launched using the key chord SUPER+p followed by 'key'
|
||||||
Key(["mod1", "control"], "e",
|
KeyChord([mod], "p", [
|
||||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh"),
|
Key([], "e", lazy.spawn("./dmscripts/dmconf")),
|
||||||
desc='Dmenu script for editing config files'
|
Key([], "i", lazy.spawn("./dmscripts/dmscrot")),
|
||||||
),
|
Key([], "k", lazy.spawn("./dmscripts/dmkill")),
|
||||||
Key(["mod1", "control"], "m",
|
Key([], "l", lazy.spawn("./dmscripts/dmlogout")),
|
||||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh"),
|
Key([], "m", lazy.spawn("./dmscripts/dman")),
|
||||||
desc='Dmenu system monitor script'
|
Key([], "r", lazy.spawn("./dmscripts/dmred")),
|
||||||
),
|
Key([], "s", lazy.spawn("./dmscripts/dmsearch")),
|
||||||
Key(["mod1", "control"], "p",
|
Key([], "p", lazy.spawn("passmenu"))
|
||||||
lazy.spawn("passmenu"),
|
])
|
||||||
desc='Passmenu'
|
|
||||||
),
|
|
||||||
Key(["mod1", "control"], "r",
|
|
||||||
desc='Dmenu reddio script'
|
|
||||||
),
|
|
||||||
Key(["mod1", "control"], "s",
|
|
||||||
lazy.spawn("./.dmenu/dmenu-surfraw.sh"),
|
|
||||||
desc='Dmenu surfraw script'
|
|
||||||
),
|
|
||||||
Key(["mod1", "control"], "t",
|
|
||||||
lazy.spawn("./.dmenu/dmenu-trading.sh"),
|
|
||||||
desc='Dmenu trading programs script'
|
|
||||||
),
|
|
||||||
Key(["mod1", "control"], "i",
|
|
||||||
lazy.spawn("./.dmenu/dmenu-scrot.sh"),
|
|
||||||
desc='Dmenu scrot script'
|
|
||||||
),
|
|
||||||
### My applications launched with SUPER + ALT + KEY
|
|
||||||
Key([mod, "mod1"], "b",
|
|
||||||
lazy.spawn("tabbed -r 2 surf -pe x '.surf/html/homepage.html'"),
|
|
||||||
desc='lynx browser'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "l",
|
|
||||||
lazy.spawn(myTerm+" -e lynx gopher://distro.tube"),
|
|
||||||
desc='lynx browser'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "n",
|
|
||||||
lazy.spawn(myTerm+" -e newsboat"),
|
|
||||||
desc='newsboat'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "r",
|
|
||||||
lazy.spawn(myTerm+" -e rtv"),
|
|
||||||
desc='reddit terminal viewer'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "e",
|
|
||||||
lazy.spawn(myTerm+" -e neomutt"),
|
|
||||||
desc='neomutt'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "m",
|
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh"),
|
|
||||||
desc='toot mastodon cli'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "t",
|
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh"),
|
|
||||||
desc='tig'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "f",
|
|
||||||
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun"),
|
|
||||||
desc='vifm'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "j",
|
|
||||||
lazy.spawn(myTerm+" -e joplin"),
|
|
||||||
desc='joplin'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "c",
|
|
||||||
lazy.spawn(myTerm+" -e cmus"),
|
|
||||||
desc='cmus'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "i",
|
|
||||||
lazy.spawn(myTerm+" -e irssi"),
|
|
||||||
desc='irssi'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "y",
|
|
||||||
lazy.spawn(myTerm+" -e youtube-viewer"),
|
|
||||||
desc='youtube-viewer'
|
|
||||||
),
|
|
||||||
Key([mod, "mod1"], "a",
|
|
||||||
lazy.spawn(myTerm+" -e ncpamixer"),
|
|
||||||
desc='ncpamixer'
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
group_names = [("WWW", {'layout': 'monadtall'}),
|
group_names = [("WWW", {'layout': 'monadtall'}),
|
||||||
|
|||||||
@@ -130,7 +130,12 @@
|
|||||||
(define-key *root-map* (kbd "M-s") "google")
|
(define-key *root-map* (kbd "M-s") "google")
|
||||||
(define-key *root-map* (kbd "i") "imdb")
|
(define-key *root-map* (kbd "i") "imdb")
|
||||||
|
|
||||||
;; Message window font
|
;; Message window font;
|
||||||
|
; (ql:quickload 'clx-truetype)
|
||||||
|
; (load-module "ttf-fonts")
|
||||||
|
; (xft:cache-fonts)
|
||||||
|
; (set-font (make-instance 'xft:font :family "Iosevka Nerd Font" :subfamily "Bold" :size 7 :antialias t))
|
||||||
|
; (set-font "-*-fixed-medium-r-normal-*-*-140-*-*-*-*-*-*")
|
||||||
(set-font "-xos4-terminus-medium-r-normal--13-140-72-72-c-80-iso8859-14")
|
(set-font "-xos4-terminus-medium-r-normal--13-140-72-72-c-80-iso8859-14")
|
||||||
|
|
||||||
;;; Define window placement policy...
|
;;; Define window placement policy...
|
||||||
@@ -139,7 +144,7 @@
|
|||||||
|
|
||||||
;; Last rule to match takes precedence!
|
;; Last rule to match takes precedence!
|
||||||
;; TIP: if the argument to :title or :role begins with an ellipsis, a substring
|
;; TIP: if the argument to :title or :role begins with an ellipsis, a substring
|
||||||
;; match is performed.
|
;;
|
||||||
;; TIP: if the :create flag is set then a missing group will be created and
|
;; TIP: if the :create flag is set then a missing group will be created and
|
||||||
;; restored from *data-dir*/create file.
|
;; restored from *data-dir*/create file.
|
||||||
;; TIP: if the :restore flag is set then group dump is restored even for an
|
;; TIP: if the :restore flag is set then group dump is restored even for an
|
||||||
|
|||||||
@@ -123,11 +123,24 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
alias doas="doas --"
|
alias doas="doas --"
|
||||||
|
|
||||||
# navigation
|
# navigation
|
||||||
alias ..='cd ..'
|
up () {
|
||||||
alias ...='cd ../..'
|
local d=""
|
||||||
alias .3='cd ../../..'
|
local limit="$1"
|
||||||
alias .4='cd ../../../..'
|
|
||||||
alias .5='cd ../../../../..'
|
# Default to limit of 1
|
||||||
|
if [ -z "$limit" ] || [ "$limit" -le 0 ]; then
|
||||||
|
limit=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for ((i=1;i<=limit;i++)); do
|
||||||
|
d="../$d"
|
||||||
|
done
|
||||||
|
|
||||||
|
# perform cd. Show error if cd fails
|
||||||
|
if ! cd "$d"; then
|
||||||
|
echo "Couldn't go up $limit dirs.";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# vim and emacs
|
# vim and emacs
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
|
|||||||
Reference in New Issue
Block a user