mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
many updates
This commit is contained in:
parent
f5e40074fc
commit
351828609d
@ -3,6 +3,8 @@
|
|||||||
status=$(gamemoded -s)
|
status=$(gamemoded -s)
|
||||||
if [ "$status" == "gamemode is inactive" ]; then
|
if [ "$status" == "gamemode is inactive" ]; then
|
||||||
gamemoded -r &
|
gamemoded -r &
|
||||||
|
killall swayidle
|
||||||
else
|
else
|
||||||
killall gamemoded
|
killall gamemoded
|
||||||
|
~/.config/sway/scripts/idle.sh
|
||||||
fi
|
fi
|
||||||
|
@ -18,6 +18,12 @@ move_tabbed_single = {"h": "focus left",
|
|||||||
"k": "focus left",
|
"k": "focus left",
|
||||||
"l": "focus right"}
|
"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()
|
i3 = i3ipc.Connection()
|
||||||
|
|
||||||
# Get the focused container
|
# Get the focused container
|
||||||
@ -25,11 +31,13 @@ focused = i3.get_tree().find_focused()
|
|||||||
|
|
||||||
# Get number of splits (v or h)
|
# Get number of splits (v or h)
|
||||||
focused_workspace = focused.workspace()
|
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
|
# Get the layout of the parent container
|
||||||
layout = focused.parent.layout
|
layout = focused.parent.layout
|
||||||
|
|
||||||
|
print(num_splits, layout)
|
||||||
|
|
||||||
if layout == "tabbed":
|
if layout == "tabbed":
|
||||||
if num_splits > 0:
|
if num_splits > 0:
|
||||||
i3.command(move_tabbed[sys.argv[1]])
|
i3.command(move_tabbed[sys.argv[1]])
|
||||||
|
@ -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
|
7
home/dot_local/share/applications/Yuzu.desktop.tmpl
Normal file
7
home/dot_local/share/applications/Yuzu.desktop.tmpl
Normal 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
|
BIN
home/dot_local/share/icons/SuperSlicer.png
Normal file
BIN
home/dot_local/share/icons/SuperSlicer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 228 KiB |
BIN
home/dot_local/share/icons/Yuzu.png
Normal file
BIN
home/dot_local/share/icons/Yuzu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
@ -1,2 +1,4 @@
|
|||||||
- import_tasks: packages.yml
|
- import_tasks: packages.yml
|
||||||
tags: ["packages"]
|
tags: ["packages"]
|
||||||
|
- import_tasks: yuzu.yml
|
||||||
|
tags: ["packages"]
|
||||||
|
7
provision/fedora/ansible/tasks/gaming/yuzu.yml
Normal file
7
provision/fedora/ansible/tasks/gaming/yuzu.yml
Normal 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
|
@ -9,7 +9,7 @@
|
|||||||
when: "asset.name is regex(item.regex)"
|
when: "asset.name is regex(item.regex)"
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ asset.browser_download_url }}"
|
src: "{{ asset.browser_download_url }}"
|
||||||
dest: /usr/local/bin
|
dest: /home/{{ user }}/.local/bin
|
||||||
remote_src: true
|
remote_src: true
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: asset
|
loop_var: asset
|
||||||
|
@ -9,8 +9,13 @@
|
|||||||
when: "asset.name is regex(item.regex)"
|
when: "asset.name is regex(item.regex)"
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ asset.browser_download_url }}"
|
url: "{{ asset.browser_download_url }}"
|
||||||
dest: /usr/local/bin/{{ item.repo }}
|
dest: /home/{{ user }}/.local/bin/{{ item.repo }}
|
||||||
mode: 0775
|
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_control:
|
||||||
loop_var: asset
|
loop_var: asset
|
||||||
become: true
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
- khard # Command-line addressbook built around CardDAV
|
- khard # Command-line addressbook built around CardDAV
|
||||||
- vdirsyncer # Synchronize calendars and addressbooks
|
- vdirsyncer # Synchronize calendars and addressbooks
|
||||||
- neofetch # Simple system information script
|
- neofetch # Simple system information script
|
||||||
|
- nnn
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user