From f874a9b29d7722a6e229c7419cac50bdfe7076f2 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Tue, 11 Jun 2024 20:36:15 -0300 Subject: [PATCH] switching back to leftwm and updating configs --- .../configs/leftwm/.config/leftwm/config.ron | 32 ++++++++----------- .../configs/leftwm/.config/leftwm/themes.toml | 18 ----------- .../leftwm/.config/leftwm/themes/current | 2 +- .../.config/leftwm/themes/everforest/down | 9 ++++++ .../leftwm/themes/everforest/theme.ron | 9 ++++++ .../.config/leftwm/themes/everforest/up | 15 +++++++++ .../leftwm/.config/leftwm/themes/solarized/up | 8 ----- 7 files changed, 48 insertions(+), 45 deletions(-) delete mode 100644 desktop/configs/leftwm/.config/leftwm/themes.toml create mode 100755 desktop/configs/leftwm/.config/leftwm/themes/everforest/down create mode 100644 desktop/configs/leftwm/.config/leftwm/themes/everforest/theme.ron create mode 100755 desktop/configs/leftwm/.config/leftwm/themes/everforest/up diff --git a/desktop/configs/leftwm/.config/leftwm/config.ron b/desktop/configs/leftwm/.config/leftwm/config.ron index e9db0ca..02a71ff 100644 --- a/desktop/configs/leftwm/.config/leftwm/config.ron +++ b/desktop/configs/leftwm/.config/leftwm/config.ron @@ -43,7 +43,7 @@ (window_title:".*Anki$", window_class: "^Anki$", spawn_on_tag: 5), (window_title: "^Add$", window_class:"^Anki$", spawn_floating: true, spawn_on_tag: 5), (window_class: "Lutris", spawn_on_tag: 7), - (window_class: "Pavucontrol", spawn_floating: true), + (window_class: "pavucontrol", spawn_floating: true), (window_class: "PrismLauncher", spawn_on_tag: 7), (window_class: "Steam", spawn_on_tag: 8), (window_class: "TeamSpeak 3", spawn_on_tag: 6), @@ -51,7 +51,7 @@ (window_class: "QOwnNotes", window_title:".*QownNotes.*", spawn_on_tag: 3), (window_class: "QOwnNotes", window_title: "Settings", spawn_floating: true), (window_class: "Virt-manager", spawn_on_tag: 10), - (window_class: "Spotify", spawn_on_tag: 10), + (window_class: "Spotify", spawn_on_tag: 4), (window_class: "thunderbird", spawn_on_tag: 10), (window_class: "XIVLauncher.Core", spawn_on_tag: 7), (window_class: "The Honkers Railway Launcher", spawn_on_tag: 7), @@ -67,9 +67,11 @@ (window_title: ".*Sign in.*", spawn_floating: true), (window_class: "gamescope", spawn_on_tag: 9), (window_class: "heroic", spawn_on_tag: 7), - (window_class: "obs", spawn_on_tag: 7), + (window_class: "obs", spawn_on_tag: 5), (window_class: "obsidian", spawn_on_tag: 3), - (window_class: "parsecd", spawn_on_tag: 7), + (window_class: "parsecd", spawn_on_tag: 5), + (window_class: "Dbeaver", spawn_on_tag: 3), + (window_class: "Chromium-browser", spawn_on_tag: 10), (window_class: "steam", spawn_on_tag: 8), (window_class: ".*Minecraft.*", spawn_on_tag: 9), (window_class: ".*csgo.*", spawn_on_tag: 9), @@ -83,8 +85,8 @@ (window_title: "steam_app_1476970", spawn_fullscreen: true), // (window_title: ".*LibreOffice.*", spawn_on_tag: 11), (window_class: "Signal", spawn_on_tag: 11), - (window_class: "SFP_UI", spawn_on_tag: 11), - (window_class: "Pidgin", spawn_on_tag: 11), + (window_class: "corectrl", spawn_on_tag: 11), + (window_class: "r2modman", spawn_on_tag: 3), ], disable_current_tag_swap: false, disable_tile_drag: false, @@ -92,11 +94,11 @@ focus_behaviour: Sloppy, focus_new_windows: true, single_window_border: true, - sloppy_mouse_follows_focus: false, + sloppy_mouse_follows_focus: true, auto_derive_workspaces: true, keybind: [ - (command: Execute, value: "~/.config/rofi/launchers/type-1/launcher.sh", modifier: ["modkey", "Shift"], key: "Return"), - (command: Execute, value: "kitty", modifier: ["modkey"], key: "Return"), + (command: Execute, value: "rofi -show drun", modifier: ["modkey", "Shift"], key: "Return"), + (command: Execute, value: "~/.local/bin/wezterm-gui", modifier: ["modkey"], key: "Return"), (command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "c"), (command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"), (command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"), @@ -153,23 +155,17 @@ (command: ToggleFullScreen, modifier: ["modkey"], key: "f"), // apps - (command: Execute, value: "~/.local/bin/print-fullscreen", modifier: [], key: "Print"), - (command: Execute, value: "~/.local/bin/print-select", modifier: ["Shift"], key: "Print"), - (command: Execute, value: "~/.local/bin/print-tmp", modifier: ["Control", "Shift"], key: "Print"), + (command: Execute, value: "~/.local/bin/print-fullscreen.sh", modifier: [], key: "Print"), + (command: Execute, value: "~/.local/bin/print-select.sh", modifier: ["Shift"], key: "Print"), + (command: Execute, value: "~/.local/bin/print-tmp.sh", modifier: ["Control", "Shift"], key: "Print"), (command: Execute, value: "~/.local/bin/print-window.sh", modifier: ["Control"], key: "Print"), (command: Execute, value: "firefox", modifier: ["modkey"], key: "b"), (command: Execute, value: "steam --noverifyfiles -cef-enable-debugging", modifier: ["modkey", "Shift"], key: "s"), - (command: Execute, value: "~/sfp.sh", modifier: ["modkey", "Control"], key: "s"), (command: Execute, value: "thunar", modifier: ["modkey"], key: "e"), (command: Execute, value: "~/scripts/macro.sh", modifier: ["Control", "Shift"], key: "m"), - // (command: Execute, value: "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json obs", modifier: ["Control", "Shift"], key: "m"), - (command: Execute, value: "flatpak run de.shorsh.discord-screenaudio", modifier: ["modkey", "Control"], key: "d"), (command: Execute, value: "XL_SECRET_PROVIDER=file xivlauncher", modifier: ["modkey", "Alt"], key: "x"), - (command: Execute, value: "xournalpp", modifier: ["modkey", "Control"], key: "x"), - (command: Execute, value: "i3lock", modifier: ["modkey", "Shift"], key: "l"), // (command: Execute, value: "xdotool type ?\n", modifier: ["Shift"], key:"question"), // (command: Execute, value: "xdotool type !\n", modifier: ["Shift"], key:"exclam") - ], state_path: None, ) diff --git a/desktop/configs/leftwm/.config/leftwm/themes.toml b/desktop/configs/leftwm/.config/leftwm/themes.toml deleted file mode 100644 index 18d9ceb..0000000 --- a/desktop/configs/leftwm/.config/leftwm/themes.toml +++ /dev/null @@ -1,18 +0,0 @@ -[[repos]] -url = "localhost" -name = "LOCAL" -definitions_version = 1 - -[[repos.themes]] -name = "solarized" -directory = "/lucius/.config/leftwm/themes/solarized" -version = "0.0.0" -leftwm_versions = "*" -current = true - -[[repos.themes]] -name = "test" -directory = "/lucius/.config/leftwm/themes/test" -version = "0.0.0" -leftwm_versions = "*" -current = false diff --git a/desktop/configs/leftwm/.config/leftwm/themes/current b/desktop/configs/leftwm/.config/leftwm/themes/current index 418d133..82a8cd8 120000 --- a/desktop/configs/leftwm/.config/leftwm/themes/current +++ b/desktop/configs/leftwm/.config/leftwm/themes/current @@ -1 +1 @@ -solarized \ No newline at end of file +/yang/.config/leftwm/themes/everforest \ No newline at end of file diff --git a/desktop/configs/leftwm/.config/leftwm/themes/everforest/down b/desktop/configs/leftwm/.config/leftwm/themes/everforest/down new file mode 100755 index 0000000..3e5c36b --- /dev/null +++ b/desktop/configs/leftwm/.config/leftwm/themes/everforest/down @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" + + +leftwm-command "UnloadTheme" + +pkill polybar +pkill picom diff --git a/desktop/configs/leftwm/.config/leftwm/themes/everforest/theme.ron b/desktop/configs/leftwm/.config/leftwm/themes/everforest/theme.ron new file mode 100644 index 0000000..738081d --- /dev/null +++ b/desktop/configs/leftwm/.config/leftwm/themes/everforest/theme.ron @@ -0,0 +1,9 @@ +#![enable(implicit_some)] +( +border_width : 2, +margin : 5, +workspace_margin : 4, +default_border_color : "#595959", +floating_border_color : "#595959", +focused_border_color : "#a7c080", +) diff --git a/desktop/configs/leftwm/.config/leftwm/themes/everforest/up b/desktop/configs/leftwm/.config/leftwm/themes/everforest/up new file mode 100755 index 0000000..b48163a --- /dev/null +++ b/desktop/configs/leftwm/.config/leftwm/themes/everforest/up @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" +#down the last running theme +if [ -f "/tmp/leftwm-theme-down" ]; then + /tmp/leftwm-theme-down + rm /tmp/leftwm-theme-down +fi +ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down +leftwm-command "LoadTheme $SCRIPTPATH/theme.ron" + +WALLPAPER_PATH=~/pics/wallpapers +autorandr tv_off +feh --bg-scale ~/pics/wallpapers/ef1.png --bg-scale ~/pics/wallpapers/ef2.jpg --bg-scale ~/pics/wallpapers/cottage.jpg +bash ~/.config/polybar/launch.sh +~/.local/bin/picom-ibhagwan -b --experimental-backends & diff --git a/desktop/configs/leftwm/.config/leftwm/themes/solarized/up b/desktop/configs/leftwm/.config/leftwm/themes/solarized/up index c2ded55..6e21877 100755 --- a/desktop/configs/leftwm/.config/leftwm/themes/solarized/up +++ b/desktop/configs/leftwm/.config/leftwm/themes/solarized/up @@ -12,12 +12,4 @@ ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down leftwm-command "LoadTheme $SCRIPTPATH/theme.ron" WALLPAPER_PATH=~/pics/wallpapers -# feh --bg-fill ~/pics/wallpapers/simon2.jpg --bg-fill ~/pics/wallpapers/simon3.jpg --bg-fill ~/pics/wallpapers/simon1.jpg # solarized -# feh --bg-fill ~/pics/wallpapers/1155989-rainbow-polygons.jpg --bg-fill ~/pics/wallpapers/media_Ff_g2i3UYAAEL54.jpg --bg-fill ~/pics/wallpapers/media_FZC3t4FUsAAPfOg.jpg # anime girls -feh --bg-fill ~/pics/wallpapers/a-solitary-drive-1920x1080-v0-rwitfbbmnpnb1.png --bg-fill ~/pics/wallpapers/1155989-rainbow-polygons.jpg --bg-fill ~/pics/wallpapers/yuan-zhang-1.jpg -feh --bg-fill $WALLPAPER_PATH/B48w8xB.jpeg --bg-fill $WALLPAPER_PATH/998105.png -# feh --bg-fill ~/pics/wallpapers/late-summer-evening-in-kotor-1920-x-1080-v0-twtwvfb4nsba1.png --bg-fill ~/pics/wallpapers/outrun-elevation-neon-nights-and-soaring-shapes-4k-wallpaper-v0-l3oe6q9neftb1.jpg bash ~/.config/polybar/launch.sh -# eww daemon & -# eww open bar0 -~/.local/bin/picom-ibhagwan -b --experimental-backends