summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i3/.config/i3/config15
-rwxr-xr-xscripts/Scripts/open_rel8
2 files changed, 18 insertions, 5 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 632726f..2a1c113 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -178,7 +178,7 @@ bindsym XF86Display exec ~/Scripts/screentool
# launch script thingy
bindsym $mod+semicolon exec --no-startup-id Scripts/lc --dmenu
-bindsym $mod+Shift+o exec --no-startup-id Scripts/open_rel --shell
+bindsym $mod+Shift+o exec --no-startup-id Scripts/open_rel --alt
bindsym $mod+o exec --no-startup-id Scripts/open_rel
# Password manager
@@ -226,8 +226,21 @@ mode "resize" {
bindsym $mod+r mode "resize"
+# class border backgr. text indicator child_border
+client.focused #8c404c #661d2c #ffffff #a44c59 #8c404c
+client.focused_inactive #8c404c #8c404c #ffffff #a44c59 #8c404c
+# client.unfocused #333333 #222222 #888888 #292d2e #222222
+# client.urgent #2f343a #900000 #ffffff #900000 #900000
+# client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
+
+# client.background #ffffff
+
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
+
+ colors {
+ focused_workspace #8c404c #661d2c #ffffff
+ }
}
diff --git a/scripts/Scripts/open_rel b/scripts/Scripts/open_rel
index 6d68c41..a71df0a 100755
--- a/scripts/Scripts/open_rel
+++ b/scripts/Scripts/open_rel
@@ -24,7 +24,7 @@ def launch_term(command=None, directory=None):
sp.run(run)
-def decide_and_run(title: str, do_shell=True):
+def decide_and_run(title: str, alt=False):
if title.startswith("fish "):
launch_term(directory=title[5:])
elif (m := re.search(".*client\d*@\[(\d*)\] - Kakoune", title)):
@@ -36,7 +36,7 @@ def decide_and_run(title: str, do_shell=True):
if folder is None:
folder = shell_file
shell_file = None
- if do_shell:
+ if alt:
command = "nix-shell" + (f" {shell_file}" if shell_file else "")
else:
command = None
@@ -47,8 +47,8 @@ def decide_and_run(title: str, do_shell=True):
if __name__ == "__main__":
parser = argparse.ArgumentParser()
- parser.add_argument("--shell", "-s", action="store_true")
+ parser.add_argument("--alt", "-a", action="store_true", help="Alternative action")
args = parser.parse_args()
title = get_window_title()
- decide_and_run(title, args.shell)
+ decide_and_run(title, args.alt)