Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ACuteWoof committed Jun 11, 2024
1 parent c808d7d commit 8d5b409
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 100 deletions.
17 changes: 17 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pkgname="woof-qtile-config"
pkgdesc="Woof's Qtile configuration files for Woof OS"
pkgver="1.0.0"
pkgrel=1
arch=('any')
url="https://acutewoof.github.io/qtile"
license=('MIT')
depends=('qtile')
source=('https://github.com/ACuteWoof/qtile/archive/refs/tags/v1.0.0.tar.gz')

sha256sums=("SKIP")

package() {
cd qtile*
cp -r ./* ~/.config/qtile
}

89 changes: 3 additions & 86 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,88 +1,5 @@
# Woof OS Qtile Edition - Qtile Config
# Woof qtile config

![main image](https://os.lewoof.xyz/images/qtile/s4.png)
<img src='https://img.shields.io/badge/License-MIT-%236ebd68?style=flat-square' alt="LICENSE">

# Keybinds

Woof OS uses a tiling window manager, qtile, mainly controlled using the keyboard.
The keybinds listed here are declared in `~/.config/qtile/config.py`.

By default, <kbd>[mod]</kbd> is the <kbd>Super/mod4</kbd> key, which is the <kbd>⊞ Win</kbd> key on most keyboards, and the <kbd>⌘ Command</kbd> key on Macs.

## Focus navigation

- <kbd>[mod]</kbd> <kbd>H</kbd> moves focus to the **left**
- <kbd>[mod]</kbd> <kbd>L</kbd> moves focus to the **right**
- <kbd>[mod]</kbd> <kbd>J</kbd> moves focus **down**
- <kbd>[mod]</kbd> <kbd>K</kbd> moves focus **up**
- <kbd>[mod]</kbd> <kbd>Space</kbd> moves focus to the **next window**
- <kbd>[mod]</kbd> <kbd>.</kbd> moves focus to the **next screen**

The mouse can also be used to switch focus between windows by simply hovering over them.

- <kbd>[mod]</kbd> <kbd>1</kbd>/<kbd>2</kbd>/<kbd>3</kbd>/<kbd>4</kbd>/<kbd>5</kbd>/<kbd>6</kbd>/<kbd>7</kbd>/<kbd>8</kbd>/<kbd>9</kbd> moves focus to the workspace assigned to the ID

## Window arrangement

- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>H</kbd> moves focused window to the **left**
- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>L</kbd> moves focused window to the **right**
- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>J</kbd> moves focused window **down**
- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>K</kbd> moves focused window **up**
- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>R</kbd>eturn toggles between split and unsplit sides of stack
- <kbd>[mod]</kbd> <kbd>Tab</kbd> toggles between layouts
- <kbd>[mod]</kbd> <kbd>Shift</kbd> <kbd>1</kbd>/<kbd>2</kbd>/<kbd>3</kbd>/<kbd>4</kbd>/<kbd>5</kbd>/<kbd>6</kbd>/<kbd>7</kbd>/<kbd>8</kbd>/<kbd>9</kbd> shifts focused window to the workspace assigned to the ID

## Window sizing

- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>H</kbd> grows window to the **left**
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>L</kbd> grows window to the **right**
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>J</kbd> grows window **down**
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>K</kbd> grows window **up**
- <kbd>[mod]</kbd> <kbd>N</kbd> resets all window sizes

## Miscellaneous and launching programs

- <kbd>[mod]</kbd> <kbd>Return</kbd> launches the terminal (alacritty)
- <kbd>[mod]</kbd> <kbd>R</kbd> opens the Rofi run launcher
- <kbd>[mod]</kbd> <kbd>P</kbd> opens the Rofi power menu
- <kbd>[mod]</kbd> <kbd>B</kbd> launches the web browser (brave)
- <kbd>[mod]</kbd> <kbd>C</kbd> launches the file manager (vifm)
- <kbd>[mod]</kbd> <kbd>Z</kbd> opens copied PDF URL in Zathura
- <kbd>[mod]</kbd> <kbd>Y</kbd> opens copied YouTube URL in MPV (using yt-dlp)
- <kbd>[mod]</kbd> <kbd>F</kbd> opens the Flameshot GUI
- <kbd>[mod]</kbd> <kbd>S</kbd> takes a full screenshot using Scrot
- <kbd>[mod]</kbd> <kbd>T</kbd> spawns a command using a prompt
- <kbd>[mod]</kbd> <kbd>V</kbd> shows the active windows through Rofi
- <kbd>[mod]</kbd> <kbd>D</kbd> sends a notification including the current date and time
- <kbd>[mod]</kbd> <kbd>Q</kbd> kills focused window
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>R</kbd> restarts Qtile
- <kbd>[mod]</kbd> <kbd>CTRL</kbd> <kbd>Q</kbd> shuts down Qtile

# Gallery

![main image](https://os.lewoof.xyz/images/qtile/s4.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s0.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s1.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s2.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s3.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s5.png)

![screenshot](https://os.lewoof.xyz/images/qtile/s6.png)

---

## Contact

- Email: [sutharshanvithushan@gmail.com](mailto:sutharshanvithushan@gmail.com)
- Matrix: [#woof-os:mx.lewoof.xyz](https://matrix.to/#/#woof-os:matrix.org) | [@acutewoof:mx.lewoof.xyz](https://matrix.to/#/@acutewoof:matrix.org)
- Discord: [Woof OS](https://discord.gg/2G2yGUAXUS)

## Donate

- **Monero:** 88Ftpu3ncRyLv7Z2c14b9L4MsyWscEqLBJhENxviYtmtRfidDx6G9y3Xyd8aYF8NRV2c2dF5QZiyTfHwuWLH9qmsSpskLhj
- **BuyMeACoffee:** [acutewoof](https://buymeacoffee.com/acutewoof)
Yea I have no life
2 changes: 1 addition & 1 deletion autostart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nm-applet &
/usr/bin/ibus-daemon -dr &
# calamares &
# noisetorch &
# flameshot &
flameshot &
easyeffects --gapplication-service &
xfce4-power-manager &
warpd -c ~/.config/warpd/warpdrc &
Expand Down
12 changes: 6 additions & 6 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import json
import subprocess
from datetime import datetime

from libqtile import bar, layout, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
Expand Down Expand Up @@ -91,10 +90,11 @@
Key([mod], "f", lazy.spawn("flameshot gui"), desc="Open flameshot gui"),
Key([mod], "s", lazy.spawn("scrot"), desc="Take full screen ss using scrot"),
Key([mod], "z", lazy.spawn(f"{home}/.config/qtile/view.sh"), desc="View in Zathura"),
Key([mod], "y", lazy.spawn(f"{home}/.config/qtile/yt.sh"), desc="View in MPV"),
Key([mod, "control"], "p", lazy.spawn("rofi -show power-menu -modi power-menu:rofi-power-menu"), desc="Rofi Power Menu"),
Key([mod], "y", lazy.spawn(f"{home}/.config/qtile/yt.sh"), desc="Open YouTube video in MPV"),
Key([mod], "g", lazy.spawn("rofi -show filebrowser"), desc="Open YouTube video in MPV"),
Key([mod, "control"], "p", lazy.spawn("rofi -show power-menu -modi power-menu:rofi-power-menu"), desc="Power Menu"),
# Toggle between screens
Key([mod], 'period', lazy.next_screen(), desc='Next monitor'),
Key([mod], 'period', lazy.next_screen(), desc='Next display'),
]

groups = [Group(i) for i in "1234567890"]
Expand Down Expand Up @@ -357,7 +357,8 @@
Match(title="Farge"),
Match(wm_class="org.gnome.Nautilus"),
Match(wm_class="feh"),
Match(wm_class="plank"),
Match(wm_class="screenkey"),
Match(title="screenkey"),
Match(wm_class="gnome-calculator"),
Match(wm_class="blueberry"),
Match(wm_class="protonvpn"),
Expand Down Expand Up @@ -394,5 +395,4 @@ def _unswallow(window):
if hasattr(window, "parent"):
window.parent.minimized = False


wmname = "LG3D"
Binary file added config/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions config/colors-regular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bg": "#2e3440",
"fg": "#d8dee9",
"active": "#a3be8c",
"inactive": "#d8dee9",
"border_focus": "#b48ead",
"border_normal": "#2e3440",
"start": "#2e3440",
"groups_bg": "#2e3440",
"current_screen_tab": "#a3be8c",
"systray": "#2e3440",
"color2fg": "#8fbcbb",
"color2": "#2e3440",
"color1fg": "#81a1c1",
"color1": "#2e3440",
"color3fg": "#88c0d0",
"color3": "#2e3440",
"color4fg": "#5e81ac",
"color4": "#2e3440"
}
Binary file added config/manjaro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion config/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"looks": {"wallpaper": "/etc/woofos/generated/0002.png", "caret_font_size": 49, "caret_font": "Font Awesome 5 Free Solid", "panel-opacity": 1.0, "panel-size": 20}, "display": {"screen-count": 1}}
{"looks": {"wallpaper": "/home/acutewoof/Pictures/wallpapers/0065.jpg", "caret_font_size": 49, "caret_font": "Font Awesome 5 Free Solid", "panel-opacity": 1.0, "panel-size": 20}, "display": {"screen-count": 1}}
43 changes: 43 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/sh

clear
echo -e "\033[94m#################################################\033[0m"
echo -e "\033[94m########## \033[1mInstall Woof's Qtile Config\033[0m\033[94m ##########\033[0m"
echo -e "\033[94m#################################################\033[0m"

config() {
echo -e "\033[94m#################################################\033[0m"
echo -e "\033[95m\033[1mStarting...\033[0m"
sleep 3
clear
echo -e "\033[95m\033[1mDeleting Files...\033[0m"
rm -rf ~/.config/qtile/*
sleep 1
clear
echo -e "\033[95m\033[1mCopying Files...\033[0m"
cp -r ./* ~/.config/qtile/
sleep 1
clear
echo -e "\033[94mDone copying, going to install fonts.\033[0m"
mkdir ~/.fonts
cp ./fonts/* ~/.fonts
sleep 1
clear
echo -e "\033[96m"
read -p "Do you want set qtile as the default desktop in xinitrc (yes/no): " yn
case $yn in
[Yy]* ) echo "exec qtile start" > ~/.xinitrc;;
[Nn]* ) clear; exit;;
esac

}

echo -e "\033[41mAll contents of ~/.config/qtile will be deleted\033[0m"
echo -e "\033[96m"
echo -e "All contents of ~/.config/qtile will be deleted"
read -p "Are you sure you want to install Woof's config? (yes/no): " yn
case $yn in
[Yy]* ) config;;
[Nn]* ) clear; exit;;
esac

14 changes: 8 additions & 6 deletions view.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
notify-send "Loading zathura"
rm -rf ~/.tmp/zathura/
mkdir -p ~/.tmp/zathura
touch ~/.tmp/zathura/current
wget $(echo $(xclip -o)) -O ~/.tmp/zathura/current && zathura ~/.tmp/zathura/current
notify-send "Zathura closed"
notify-send "Loading zathura..."
URL=$(echo $(xclip -o))
FILE=${URL##*/}
ROOT="$HOME/Basement/PDF/"
mkdir -p $ROOT
ls $ROOT
wget "$URL" -O "$ROOT$FILE" && zathura "$ROOT$FILE"
notify-send "Zathura closed."

0 comments on commit 8d5b409

Please sign in to comment.