From 77f4ff43b8c98f1480cdcb0103980ff030cec156 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 1 Sep 2020 16:20:40 +0200 Subject: Nord theme for Termite. Qtile autostart. bash_profile don't force startx. --- .config/qtile/autostart.sh | 8 ++++++++ .config/qtile/config.py | 16 ++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 .config/qtile/autostart.sh (limited to '.config/qtile') diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh new file mode 100755 index 0000000..c05510b --- /dev/null +++ b/.config/qtile/autostart.sh @@ -0,0 +1,8 @@ +#!/bin/sh +xset -b +setxkbmap -option caps:swapescape +#setxkbmap -layout us,rs -variant ,alternatequotes -option grp:alt_shift_toggle,caps:swapescape +dunst & +udiskie & +#picom & +feh --bg-fill ~/stuff/pictures/alps-house.jpg diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 8315d83..34b104d 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -24,18 +24,30 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import os +import subprocess + from typing import List # noqa: F401 -from libqtile import bar, layout, widget +from libqtile import bar, layout, widget, hook from libqtile.config import Click, Drag, Group, Key, Screen from libqtile.lazy import lazy from libqtile.utils import guess_terminal mod = "mod4" -#terminal = guess_terminal() terminal = "termite" +@hook.subscribe.startup_once +def autostart(): + home = os.path.expanduser('~/.config/qtile/autostart.sh') + subprocess.call([home]) + keys = [ + #MY KEYS + Key([mod], "t", lazy.window.toggle_floating(), + desc="Toggle floating"), + ######## + # Switch between windows in current stack pane Key([mod], "k", lazy.layout.down(), desc="Move focus down in stack pane"), -- cgit v1.2.3