mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-11 19:17:19 +10:00
Adding key chords to qtile.
This commit is contained in:
@@ -20,8 +20,8 @@ keys = [
|
||||
desc='Launches My Terminal'
|
||||
),
|
||||
Key([mod, "shift"], "Return",
|
||||
# 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("dmenu_run -p 'Run: '"),
|
||||
# lazy.spawn("rofi -show drun -config ~/.config/rofi/themes/dt-dmenu.rasi -display-drun \"Run: \" -drun-display-format \"{name}\""),
|
||||
desc='Run Launcher'
|
||||
),
|
||||
Key([mod], "Tab",
|
||||
@@ -132,87 +132,17 @@ keys = [
|
||||
lazy.layout.toggle_split(),
|
||||
desc='Toggle between split and unsplit sides of stack'
|
||||
),
|
||||
### Dmenu scripts launched with ALT + CTRL + KEY
|
||||
Key(["mod1", "control"], "e",
|
||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh"),
|
||||
desc='Dmenu script for editing config files'
|
||||
),
|
||||
Key(["mod1", "control"], "m",
|
||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh"),
|
||||
desc='Dmenu system monitor script'
|
||||
),
|
||||
Key(["mod1", "control"], "p",
|
||||
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'
|
||||
),
|
||||
# Dmenu scripts launched using the key chord SUPER+p followed by 'key'
|
||||
KeyChord([mod], "p", [
|
||||
Key([], "e", lazy.spawn("./dmscripts/dmconf")),
|
||||
Key([], "i", lazy.spawn("./dmscripts/dmscrot")),
|
||||
Key([], "k", lazy.spawn("./dmscripts/dmkill")),
|
||||
Key([], "l", lazy.spawn("./dmscripts/dmlogout")),
|
||||
Key([], "m", lazy.spawn("./dmscripts/dman")),
|
||||
Key([], "r", lazy.spawn("./dmscripts/dmred")),
|
||||
Key([], "s", lazy.spawn("./dmscripts/dmsearch")),
|
||||
Key([], "p", lazy.spawn("passmenu"))
|
||||
])
|
||||
]
|
||||
|
||||
group_names = [("WWW", {'layout': 'monadtall'}),
|
||||
|
||||
@@ -130,7 +130,12 @@
|
||||
(define-key *root-map* (kbd "M-s") "google")
|
||||
(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")
|
||||
|
||||
;;; Define window placement policy...
|
||||
@@ -139,7 +144,7 @@
|
||||
|
||||
;; Last rule to match takes precedence!
|
||||
;; 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
|
||||
;; restored from *data-dir*/create file.
|
||||
;; TIP: if the :restore flag is set then group dump is restored even for an
|
||||
|
||||
23
.zshrc
23
.zshrc
@@ -123,11 +123,24 @@ source $ZSH/oh-my-zsh.sh
|
||||
alias doas="doas --"
|
||||
|
||||
# navigation
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias .3='cd ../../..'
|
||||
alias .4='cd ../../../..'
|
||||
alias .5='cd ../../../../..'
|
||||
up () {
|
||||
local d=""
|
||||
local limit="$1"
|
||||
|
||||
# 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
|
||||
alias vim="nvim"
|
||||
|
||||
Reference in New Issue
Block a user