mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-10 18:11:13 +10:00
Playing with qtile config.
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
[xin_0]
|
[xin_0]
|
||||||
file=/home/dt/wallpapers/0213.jpg
|
file=/home/dt/wallpapers/wp4049315.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_1]
|
[xin_1]
|
||||||
file=/home/dt/wallpapers/0213.jpg
|
file=/home/dt/wallpapers/wp4049315.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_2]
|
[xin_2]
|
||||||
file=/home/dt/wallpapers/0213.jpg
|
file=/home/dt/wallpapers/wp4049315.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[geometry]
|
[geometry]
|
||||||
posx=3840
|
posx=1926
|
||||||
posy=21
|
posy=26
|
||||||
sizex=1920
|
sizex=1904
|
||||||
sizey=1059
|
sizey=1044
|
||||||
|
|
||||||
[nitrogen]
|
[nitrogen]
|
||||||
view=icon
|
view=icon
|
||||||
|
|||||||
+44
-99
@@ -108,8 +108,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",
|
||||||
@@ -220,92 +220,31 @@ 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
|
# Emacs programs launched using the key chord CTRL+e followed by 'key'
|
||||||
Key(["mod1", "control"], "e",
|
KeyChord(["control"],"e", [
|
||||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh"),
|
Key([], "e", lazy.spawn("emacsclient -c -a 'emacs'")),
|
||||||
desc='Dmenu script for editing config files'
|
Key([], "b", lazy.spawn("emacsclient -c -a 'emacs' --eval '(ibuffer)'")),
|
||||||
),
|
Key([], "d", lazy.spawn("emacsclient -c -a 'emacs' --eval '(dired nil)'")),
|
||||||
Key(["mod1", "control"], "m",
|
Key([], "i", lazy.spawn("emacsclient -c -a 'emacs' --eval '(erc)'")),
|
||||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh"),
|
Key([], "m", lazy.spawn("emacsclient -c -a 'emacs' --eval '(mu4e)'")),
|
||||||
desc='Dmenu system monitor script'
|
Key([], "n", lazy.spawn("emacsclient -c -a 'emacs' --eval '(elfeed)'")),
|
||||||
),
|
Key([], "s", lazy.spawn("emacsclient -c -a 'emacs' --eval '(eshell)'")),
|
||||||
Key(["mod1", "control"], "p",
|
Key([], "v", lazy.spawn("emacsclient -c -a 'emacs' --eval '(+vterm/here nil)'"))
|
||||||
lazy.spawn("passmenu"),
|
]),
|
||||||
desc='Passmenu'
|
# Dmenu scripts launched using the key chord SUPER+p followed by 'key'
|
||||||
),
|
KeyChord([mod], "p", [
|
||||||
Key(["mod1", "control"], "r",
|
Key([], "e", lazy.spawn("./dmscripts/dmconf")),
|
||||||
desc='Dmenu reddio script'
|
Key([], "i", lazy.spawn("./dmscripts/dmscrot")),
|
||||||
),
|
Key([], "k", lazy.spawn("./dmscripts/dmkill")),
|
||||||
Key(["mod1", "control"], "s",
|
Key([], "l", lazy.spawn("./dmscripts/dmlogout")),
|
||||||
lazy.spawn("./.dmenu/dmenu-surfraw.sh"),
|
Key([], "m", lazy.spawn("./dmscripts/dman")),
|
||||||
desc='Dmenu surfraw script'
|
Key([], "r", lazy.spawn("./dmscripts/dmred")),
|
||||||
),
|
Key([], "s", lazy.spawn("./dmscripts/dmsearch")),
|
||||||
Key(["mod1", "control"], "t",
|
Key([], "p", lazy.spawn("passmenu"))
|
||||||
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'
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS:
|
|
||||||
|
|
||||||
* Groups
|
* Groups
|
||||||
Groups are really workspaces.
|
Groups are really workspaces.
|
||||||
|
|
||||||
@@ -423,6 +362,12 @@ def init_widgets_list():
|
|||||||
filename = "~/.config/qtile/icons/python.png",
|
filename = "~/.config/qtile/icons/python.png",
|
||||||
mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')}
|
mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')}
|
||||||
),
|
),
|
||||||
|
widget.Sep(
|
||||||
|
linewidth = 0,
|
||||||
|
padding = 6,
|
||||||
|
foreground = colors[2],
|
||||||
|
background = colors[0]
|
||||||
|
),
|
||||||
widget.GroupBox(
|
widget.GroupBox(
|
||||||
font = "Ubuntu Bold",
|
font = "Ubuntu Bold",
|
||||||
fontsize = 9,
|
fontsize = 9,
|
||||||
@@ -436,10 +381,10 @@ def init_widgets_list():
|
|||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_color = colors[1],
|
highlight_color = colors[1],
|
||||||
highlight_method = "line",
|
highlight_method = "line",
|
||||||
this_current_screen_border = colors[3],
|
this_current_screen_border = colors[6],
|
||||||
this_screen_border = colors [4],
|
this_screen_border = colors [4],
|
||||||
other_current_screen_border = colors[0],
|
other_current_screen_border = colors[6],
|
||||||
other_screen_border = colors[0],
|
other_screen_border = colors[4],
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[0]
|
background = colors[0]
|
||||||
),
|
),
|
||||||
@@ -461,6 +406,16 @@ def init_widgets_list():
|
|||||||
background = colors[0],
|
background = colors[0],
|
||||||
padding = 0
|
padding = 0
|
||||||
),
|
),
|
||||||
|
widget.Systray(
|
||||||
|
background = colors[0],
|
||||||
|
padding = 5
|
||||||
|
),
|
||||||
|
widget.Sep(
|
||||||
|
linewidth = 0,
|
||||||
|
padding = 6,
|
||||||
|
foreground = colors[0],
|
||||||
|
background = colors[0]
|
||||||
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '',
|
text = '',
|
||||||
background = colors[0],
|
background = colors[0],
|
||||||
@@ -603,17 +558,7 @@ def init_widgets_list():
|
|||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[5],
|
background = colors[5],
|
||||||
format = "%A, %B %d [ %H:%M ]"
|
format = "%A, %B %d - %H:%M "
|
||||||
),
|
|
||||||
widget.Sep(
|
|
||||||
linewidth = 0,
|
|
||||||
padding = 10,
|
|
||||||
foreground = colors[0],
|
|
||||||
background = colors[5]
|
|
||||||
),
|
|
||||||
widget.Systray(
|
|
||||||
background = colors[0],
|
|
||||||
padding = 5
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
|
|||||||
+20
-14
@@ -239,6 +239,12 @@ def init_widgets_list():
|
|||||||
filename = "~/.config/qtile/icons/python.png",
|
filename = "~/.config/qtile/icons/python.png",
|
||||||
mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')}
|
mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')}
|
||||||
),
|
),
|
||||||
|
widget.Sep(
|
||||||
|
linewidth = 0,
|
||||||
|
padding = 6,
|
||||||
|
foreground = colors[2],
|
||||||
|
background = colors[0]
|
||||||
|
),
|
||||||
widget.GroupBox(
|
widget.GroupBox(
|
||||||
font = "Ubuntu Bold",
|
font = "Ubuntu Bold",
|
||||||
fontsize = 9,
|
fontsize = 9,
|
||||||
@@ -252,10 +258,10 @@ def init_widgets_list():
|
|||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_color = colors[1],
|
highlight_color = colors[1],
|
||||||
highlight_method = "line",
|
highlight_method = "line",
|
||||||
this_current_screen_border = colors[3],
|
this_current_screen_border = colors[6],
|
||||||
this_screen_border = colors [4],
|
this_screen_border = colors [4],
|
||||||
other_current_screen_border = colors[0],
|
other_current_screen_border = colors[6],
|
||||||
other_screen_border = colors[0],
|
other_screen_border = colors[4],
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[0]
|
background = colors[0]
|
||||||
),
|
),
|
||||||
@@ -277,6 +283,16 @@ def init_widgets_list():
|
|||||||
background = colors[0],
|
background = colors[0],
|
||||||
padding = 0
|
padding = 0
|
||||||
),
|
),
|
||||||
|
widget.Systray(
|
||||||
|
background = colors[0],
|
||||||
|
padding = 5
|
||||||
|
),
|
||||||
|
widget.Sep(
|
||||||
|
linewidth = 0,
|
||||||
|
padding = 6,
|
||||||
|
foreground = colors[0],
|
||||||
|
background = colors[0]
|
||||||
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text = '',
|
text = '',
|
||||||
background = colors[0],
|
background = colors[0],
|
||||||
@@ -419,17 +435,7 @@ def init_widgets_list():
|
|||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[5],
|
background = colors[5],
|
||||||
format = "%A, %B %d [ %H:%M ]"
|
format = "%A, %B %d - %H:%M "
|
||||||
),
|
|
||||||
widget.Sep(
|
|
||||||
linewidth = 0,
|
|
||||||
padding = 10,
|
|
||||||
foreground = colors[0],
|
|
||||||
background = colors[5]
|
|
||||||
),
|
|
||||||
widget.Systray(
|
|
||||||
background = colors[0],
|
|
||||||
padding = 5
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
|
|||||||
Reference in New Issue
Block a user