mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 11:00:27 +10:00
Minor edits
This commit is contained in:
@@ -46,18 +46,20 @@ xargs xwallpaper --stretch < ~/.cache/wall &
|
|||||||
### SETS CONKY STYLE BASED ON SCREEN RESOLUTION
|
### SETS CONKY STYLE BASED ON SCREEN RESOLUTION
|
||||||
# Checks screen resolution. If 1080p or higher, then we use '01' conky.
|
# Checks screen resolution. If 1080p or higher, then we use '01' conky.
|
||||||
# If less than 1080p (laptops?), then we use the smaller '02' conky.
|
# If less than 1080p (laptops?), then we use the smaller '02' conky.
|
||||||
|
# You can also set these to values '03' and '04' if you want a fancier
|
||||||
|
# conky that displays lua rings and sensor information.
|
||||||
resolutionHeight=$(xrandr | grep "primary" | awk '{print $4}' | awk -F "+" '{print $1}' | awk -F 'x' '{print $2}')
|
resolutionHeight=$(xrandr | grep "primary" | awk '{print $4}' | awk -F "+" '{print $1}' | awk -F 'x' '{print $2}')
|
||||||
|
|
||||||
if [[ $resolutionHeight -ge 1080 ]]; then
|
if [[ $resolutionHeight -ge 1080 ]]; then
|
||||||
killall conky || echo "Conky not running."
|
killall conky || echo "Conky not running."
|
||||||
sleep 2
|
sleep 2
|
||||||
conky -c "$HOME"/.config/conky/qtile/01/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
conky -c "$HOME"/.config/conky/qtile/03/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
||||||
elif [[ $resolutionHeight -lt 1080 ]]; then
|
elif [[ $resolutionHeight -lt 1080 ]]; then
|
||||||
killall conky || echo "Conky not running."
|
killall conky || echo "Conky not running."
|
||||||
sleep 2
|
sleep 2
|
||||||
conky -c "$HOME"/.config/conky/qtile/02/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
conky -c "$HOME"/.config/conky/qtile/04/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
||||||
else
|
else
|
||||||
killall conky || echo "Conky not running."
|
killall conky || echo "Conky not running."
|
||||||
sleep 2
|
sleep 2
|
||||||
conky -c "$HOME"/.config/conky/qtile/02/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
conky -c "$HOME"/.config/conky/qtile/04/"$COLORSCHEME".conf || echo "Couldn't start conky."
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -35,16 +35,23 @@ from qtile_extras.widget.decorations import BorderDecoration
|
|||||||
#from qtile_extras.widget import StatusNotifier
|
#from qtile_extras.widget import StatusNotifier
|
||||||
import colors
|
import colors
|
||||||
|
|
||||||
|
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
||||||
|
myTerm = "alacritty" # My terminal of choice
|
||||||
|
myBrowser = "brave" # My browser of choice
|
||||||
|
myEmacs = "emacsclient -c -a 'emacs' " # The space at the end is IMPORTANT!
|
||||||
|
|
||||||
# Allows you to input a name when adding treetab section.
|
# Allows you to input a name when adding treetab section.
|
||||||
@lazy.layout.function
|
@lazy.layout.function
|
||||||
def add_treetab_section(layout):
|
def add_treetab_section(layout):
|
||||||
prompt = qtile.widgets_map["prompt"]
|
prompt = qtile.widgets_map["prompt"]
|
||||||
prompt.start_input("Section name: ", layout.cmd_add_section)
|
prompt.start_input("Section name: ", layout.cmd_add_section)
|
||||||
|
|
||||||
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
# A function for hide/show all the windows in a group
|
||||||
myTerm = "alacritty" # My terminal of choice
|
@lazy.function
|
||||||
myBrowser = "brave" # My browser of choice
|
def minimize_all(qtile):
|
||||||
myEmacs = "emacsclient -c -a 'emacs' " # The space at the end is IMPORTANT!
|
for win in qtile.current_group.windows:
|
||||||
|
if hasattr(win, "toggle_minimize"):
|
||||||
|
win.toggle_minimize()
|
||||||
|
|
||||||
# A list of available commands that can be bound to keys can be found
|
# A list of available commands that can be bound to keys can be found
|
||||||
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
||||||
@@ -125,6 +132,7 @@ keys = [
|
|||||||
Key([mod], "m", lazy.layout.maximize(), desc='Toggle between min and max sizes'),
|
Key([mod], "m", lazy.layout.maximize(), desc='Toggle between min and max sizes'),
|
||||||
Key([mod], "t", lazy.window.toggle_floating(), desc='toggle floating'),
|
Key([mod], "t", lazy.window.toggle_floating(), desc='toggle floating'),
|
||||||
Key([mod], "f", lazy.window.toggle_fullscreen(), desc='toggle fullscreen'),
|
Key([mod], "f", lazy.window.toggle_fullscreen(), desc='toggle fullscreen'),
|
||||||
|
Key([mod, "shift"], "m", minimize_all(), desc="Toggle hide/show all windows on current group"),
|
||||||
|
|
||||||
# Switch focus of monitors
|
# Switch focus of monitors
|
||||||
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),
|
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),
|
||||||
|
|||||||
Reference in New Issue
Block a user