-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the leftwm config was probablyu not all I did
- Loading branch information
1 parent
971bb2d
commit 106a426
Showing
74 changed files
with
2,103 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,5 @@ | |
(package! rainbow-mode) | ||
(package! elcord) | ||
(package! poly-org) | ||
(package! ein) | ||
;;(package! jupyter) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
modkey = "Mod1" | ||
mousekey = "Mod1" | ||
workspaces = [] | ||
tags = ["一", "二", "三", "四", "五", "六", "七", "八", "九"] | ||
layouts = ["MainAndVertStack", "MainAndHorizontalStack", "MainAndDeck", "GridHorizontal", "EvenHorizontal", "EvenVertical", "Fibonacci", "CenterMain", "CenterMainBalanced", "Monocle", "RightWiderLeftStack", "LeftWiderRightStack"] | ||
layout_mode = "Workspace" | ||
scratchpad = [] | ||
disable_current_tag_swap = false | ||
focus_behaviour = "Sloppy" | ||
focus_new_windows = true | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "rofi -no-lazy-greb -show drun -icon-theme 'Papirus' -show-icons" | ||
modifier = ["modkey"] | ||
key = "d" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "qutebrowser" | ||
modifier = ["modkey"] | ||
key = "b" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "pcmanfm" | ||
modifier = ["modkey"] | ||
key = "f" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "pamixer --allow-boost -i 5" | ||
modifier = [] | ||
key = "XF86AudioRaiseVolume" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "pamixer --allow-boost -d 5" | ||
modifier = [] | ||
key = "XF86AudioLowerVolume" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "pamixer -t" | ||
modifier = [] | ||
key = "XF86AudioMute" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "playerctl play-pause" | ||
modifier = [] | ||
key = "XF86AudioPlay" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "playerctl previous" | ||
modifier = [] | ||
key = "XF86AudioPrev" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "playerctl next" | ||
modifier = [] | ||
key = "XF86AudioNext" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "flameshot gui" | ||
modifier = [] | ||
key = "Print" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "kitty" | ||
modifier = ["modkey"] | ||
key = "Return" | ||
|
||
[[keybind]] | ||
command = "CloseWindow" | ||
modifier = ["modkey"] | ||
key = "q" | ||
|
||
[[keybind]] | ||
command = "SoftReload" | ||
modifier = ["modkey", "Shift"] | ||
key = "r" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "loginctl kill-session $XDG_SESSION_ID" | ||
modifier = ["modkey", "Shift"] | ||
key = "q" | ||
|
||
[[keybind]] | ||
command = "Execute" | ||
value = "betterlockscreen" | ||
modifier = ["modkey", "Control"] | ||
key = "l" | ||
|
||
[[keybind]] | ||
command = "ToggleFullScreen" | ||
modifier = ["modkey"] | ||
key = "t" | ||
|
||
[[keybind]] | ||
command = "SwapTags" | ||
modifier = ["modkey"] | ||
key = "w" | ||
|
||
[[keybind]] | ||
command = "MoveWindowUp" | ||
modifier = ["modkey", "Shift"] | ||
key = "k" | ||
|
||
[[keybind]] | ||
command = "MoveWindowDown" | ||
modifier = ["modkey", "Shift"] | ||
key = "j" | ||
|
||
[[keybind]] | ||
command = "FocusWindowUp" | ||
modifier = ["modkey"] | ||
key = "k" | ||
|
||
[[keybind]] | ||
command = "FocusWindowDown" | ||
modifier = ["modkey"] | ||
key = "j" | ||
|
||
[[keybind]] | ||
command = "NextLayout" | ||
modifier = ["modkey", "Control"] | ||
key = "k" | ||
|
||
[[keybind]] | ||
command = "PreviousLayout" | ||
modifier = ["modkey", "Control"] | ||
key = "j" | ||
|
||
[[keybind]] | ||
command = "FocusWorkspaceNext" | ||
modifier = ["modkey"] | ||
key = "l" | ||
|
||
[[keybind]] | ||
command = "FocusWorkspacePrevious" | ||
modifier = ["modkey"] | ||
key = "h" | ||
|
||
[[keybind]] | ||
command = "MoveWindowUp" | ||
modifier = ["modkey", "Shift"] | ||
key = "Up" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "1" | ||
modifier = ["modkey"] | ||
key = "1" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "2" | ||
modifier = ["modkey"] | ||
key = "2" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "3" | ||
modifier = ["modkey"] | ||
key = "3" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "4" | ||
modifier = ["modkey"] | ||
key = "4" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "5" | ||
modifier = ["modkey"] | ||
key = "5" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "6" | ||
modifier = ["modkey"] | ||
key = "6" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "7" | ||
modifier = ["modkey"] | ||
key = "7" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "8" | ||
modifier = ["modkey"] | ||
key = "8" | ||
|
||
[[keybind]] | ||
command = "GotoTag" | ||
value = "9" | ||
modifier = ["modkey"] | ||
key = "9" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "1" | ||
modifier = ["modkey", "Shift"] | ||
key = "1" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "2" | ||
modifier = ["modkey", "Shift"] | ||
key = "2" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "3" | ||
modifier = ["modkey", "Shift"] | ||
key = "3" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "4" | ||
modifier = ["modkey", "Shift"] | ||
key = "4" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "5" | ||
modifier = ["modkey", "Shift"] | ||
key = "5" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "6" | ||
modifier = ["modkey", "Shift"] | ||
key = "6" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "7" | ||
modifier = ["modkey", "Shift"] | ||
key = "7" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "8" | ||
modifier = ["modkey", "Shift"] | ||
key = "8" | ||
|
||
[[keybind]] | ||
command = "MoveToTag" | ||
value = "9" | ||
modifier = ["modkey", "Shift"] | ||
key = "9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Why have themes | ||
|
||
With LeftWM, there are two types of configs: | ||
* **LeftWM Configuration files:** LeftWM configurations are specific to you and don’t change for different themes. These are settings like keybindings, workspace locations, and names of desktops/tags. These settings can be found in `~/.config/leftwm/config.toml`. | ||
|
||
* **Theme Configuration files:** The appearance of your desktop is different. It’s fun to try new looks and feels. It’s fun to tweak and customize the appearance (AKA: [ricing](https://www.reddit.com/r/unixporn/comments/3iy3wd/stupid_question_what_is_ricing/)). It’s fun to share so others can experience your awesome desktop! LeftWM is built around this concept. By pulling all these settings out into themes, you can now easily tweak, switch, and share your experiences. This configuration is spread between `theme.toml` and related files contained within a theme's folder. | ||
|
||
|
||
# We want your themes | ||
|
||
We are looking to expand the list of available themes for an upcoming release. If you enjoy making desktops look good please consider sharing by making a pull request on [the community themes repository](https://github.com/leftwm/leftwm-community-themes). | ||
|
||
|
||
# Requirements for a theme | ||
|
||
A theme has only two requirements. An “up” and a “down” executable/script. They can be written in whatever makes you happy. The up script you guessed it starts up all the things that make your script unique and awesome. The down script restores the environment to an un-themes state. A theme should be self contained if possible so that it can be shared and doesn’t interfere with other themes. For example when booting an application with a config file, put the config file in the theme folder instead of ~/.config. This way other themes can use the same application | ||
|
||
|
||
# Setup / selection of theme | ||
|
||
There are two ways to setup a theme: you can use [leftwm-theme](https://github.com/leftwm/leftwm-theme/) or you can set a symlink yourself. | ||
|
||
## Using LeftWM-theme | ||
Install LeftWM-theme, as per the directions on [its Github](https://github.com/leftwm/leftwm-theme). | ||
|
||
Update your list of themes: | ||
```bash | ||
leftwm-theme update | ||
``` | ||
Install the theme you like: | ||
```bash | ||
leftwm-theme install "THEME NAME GOES HERE" | ||
``` | ||
Apply the theme you like as the current theme: | ||
```bash | ||
leftwm-theme apply "THEME NAME GOES HERE" | ||
``` | ||
|
||
## Using symlinks | ||
|
||
To select a theme all that is required is that it’s located at: `~/.config/leftwm/themes/current` | ||
It is strongly recommended that you do this with a symlink rather than creating a folder. Using a symlink makes it easy to save all your themes in the folder `~/.config/leftwm/themes` and switch between them using a symlink easily. | ||
|
||
The following command would set the included basic_polybar to the current theme: | ||
|
||
```bash | ||
ln -s ~/.config/leftwm/themes/basic_polybar ~/.config/leftwm/themes/current | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
This is a very basic README, merely containing a bunch of heads-up notes for using `eww` with `leftwm` | ||
|
||
Important: | ||
Copy the `eww-bar` folder to `~/.config/eww/` otherwise every `eww` command needs to pass the path to the folder where the `eww.yuck` and `eww.scss` files are located. | ||
It is also possible to symlink instead of copy, though `eww` isn't to happy about this and will log some errors, even though working just fine. | ||
The previously used xml config is still included in this example in the `legacy_eww_xml_config` folder for reference. | ||
|
||
Previously (legacy xml configured) `eww` and `leftwm` failed to properly negotiate the `reserved` space for the `bar` windows, this fixed now though. To prevent windows from overlapping your bar please use the `gutter` setting in `theme.toml` to force this reserved space. | ||
Here is a snippet of how such gutter configuration might look like, if your bar is 24px in height: | ||
```toml | ||
[[gutter]] | ||
side = "Top" | ||
value = 24 | ||
``` | ||
|
||
Since `eww` is still rapidly changing, if stuff breaks please check their [github](https://github.com/elkowar/eww) for documentation on changes and existing issues. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
|
||
#set background | ||
if [ -x "$(command -v feh)" ]; then | ||
feh --bg-scale $SCRIPTPATH/down.jpg | ||
fi | ||
|
||
leftwm-command "UnloadTheme" | ||
|
||
pkill compton | ||
pkill picom | ||
pkill polybar | ||
pkill conky | ||
if [ -x "$(command -v eww)" ]; then | ||
eww kill | ||
fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.