many updates

This commit is contained in:
Tyler Starr 2023-06-19 17:21:34 -07:00
parent f5e40074fc
commit 351828609d
11 changed files with 44 additions and 5 deletions

View File

@ -3,6 +3,8 @@
status=$(gamemoded -s)
if [ "$status" == "gamemode is inactive" ]; then
gamemoded -r &
killall swayidle
else
killall gamemoded
~/.config/sway/scripts/idle.sh
fi

View File

@ -18,6 +18,12 @@ move_tabbed_single = {"h": "focus left",
"k": "focus left",
"l": "focus right"}
def count_splits(node):
if node.layout == 'splitv' or node.layout == 'splith':
return 1 + sum(count_splits(n) for n in node.nodes)
else:
return sum(count_splits(n) for n in node.nodes)
i3 = i3ipc.Connection()
# Get the focused container
@ -25,11 +31,13 @@ focused = i3.get_tree().find_focused()
# Get number of splits (v or h)
focused_workspace = focused.workspace()
num_splits = sum(1 for con in focused_workspace.descendants() if con.layout == 'splitv' or con.layout == 'splith')
num_splits = count_splits(focused_workspace)
# Get the layout of the parent container
layout = focused.parent.layout
print(num_splits, layout)
if layout == "tabbed":
if num_splits > 0:
i3.command(move_tabbed[sys.argv[1]])

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/home/{{ .user }}/.local/bin/SuperSlicer
Name=SuperSlicer
Icon=/home/{{ .user }}/.local/share/icons/SuperSlicer.png

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/home/{{ .user }}/.local/bin/Yuzu
Name=Yuzu
Icon=/home/{{ .user }}/.local/share/icons/Yuzu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -1,2 +1,4 @@
- import_tasks: packages.yml
tags: ["packages"]
tags: ["packages"]
- import_tasks: yuzu.yml
tags: ["packages"]

View File

@ -0,0 +1,7 @@
- name: Install yuzu
include_tasks: ../include/download-github-bin.yml
loop:
- user: pineappleEA
repo: pineapple-src
regex: "Linux-Yuzu-EA-[0-9]"
name: Yuzu

View File

@ -9,7 +9,7 @@
when: "asset.name is regex(item.regex)"
unarchive:
src: "{{ asset.browser_download_url }}"
dest: /usr/local/bin
dest: /home/{{ user }}/.local/bin
remote_src: true
loop_control:
loop_var: asset

View File

@ -9,8 +9,13 @@
when: "asset.name is regex(item.regex)"
get_url:
url: "{{ asset.browser_download_url }}"
dest: /usr/local/bin/{{ item.repo }}
dest: /home/{{ user }}/.local/bin/{{ item.repo }}
mode: 0775
when: item.name is not defined
get_url:
url: "{{ asset.browser_download_url }}"
dest: /home/{{ user }}/.local/bin/{{ item.name }}
mode: 0775
when: item.name is defined
loop_control:
loop_var: asset
become: true

View File

@ -22,6 +22,7 @@
- khard # Command-line addressbook built around CardDAV
- vdirsyncer # Synchronize calendars and addressbooks
- neofetch # Simple system information script
- nnn
state: present
become: true