FIXED
This commit is contained in:
1 parent
a60e58fd65
commit
49872a1504
11 files changed
+110
-167
No files matched your search
@@ -2,7 +2,7 @@
|
||||
# ╔═╗═╗ ╦╔╦╗╔═╗╦═╗╔╗╔╔═╗╦ ╦═╗╦ ╦╦ ╔═╗╔═╗
|
||||
# ║╣ ╔╩╦╝ ║ ║╣ ╠╦╝║║║╠═╣║ ╠╦╝║ ║║ ║╣ ╚═╗
|
||||
# ╚═╝╩ ╚═ ╩ ╚═╝╩╚═╝╚╝╩ ╩╩═╝ ╩╚═╚═╝╩═╝╚═╝╚═╝
|
||||
# https://github.com/gh0stzk/dotfiles
|
||||
#
|
||||
|
||||
wid=$1
|
||||
class=$2
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# ╦ ╦╦╔╦╗╔═╗ ╔╗ ╔═╗╦═╗
|
||||
# ╠═╣║ ║║║╣ ╠╩╗╠═╣╠╦╝
|
||||
# ╩ ╩╩═╩╝╚═╝ ╚═╝╩ ╩╩╚═
|
||||
# Simple script to hide/show polybar
|
||||
|
||||
function hide() {
|
||||
|
||||
case "${RICETHEME}" in
|
||||
karla)
|
||||
polybar-msg cmd hide | bspc config top_padding 2
|
||||
;;
|
||||
*)
|
||||
echo "Error: Something fails dude.."
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
function unhide() {
|
||||
|
||||
case "${RICETHEME}" in
|
||||
karla)
|
||||
polybar-msg cmd show | bspc config top_padding 48
|
||||
;;
|
||||
*)
|
||||
echo "Error: Something fails dude.."
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
case $1 in
|
||||
-h | --hide | hide)
|
||||
hide
|
||||
exit;;
|
||||
-u | --unhide | unhide)
|
||||
unhide
|
||||
exit;;
|
||||
*) # Invalid option
|
||||
echo "Error: Invalid option"
|
||||
exit;;
|
||||
esac
|
||||
@@ -0,0 +1,174 @@
|
||||
// # z0mbi3 - https://github.com/gh0stzk/dotfiles
|
||||
|
||||
//----- Main Configuration -----//
|
||||
|
||||
configuration {
|
||||
modi: "drun";
|
||||
icon-theme: "Papirus-Dark";
|
||||
application-fallback-icon: "Adwaita";
|
||||
show-icons: true;
|
||||
drun-display-format: "{name}";
|
||||
disable-history: true;
|
||||
sidebar-mode: false;
|
||||
|
||||
hover-select: true;
|
||||
me-select-entry: "";
|
||||
me-accept-entry: "MousePrimary";
|
||||
}
|
||||
|
||||
//----- Global Properties -----//
|
||||
|
||||
* {
|
||||
font: "JetBrainsMono Nerd Font Bold 9";
|
||||
background: #1A1B26;
|
||||
background-alt: #1A1B26E0;
|
||||
foreground: #c0caf5;
|
||||
selected: #7aa2f7;
|
||||
}
|
||||
|
||||
//----- Main Window -----//
|
||||
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 550px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
border-radius: 6px;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
//----- Main Box -----//
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
background-color: transparent;
|
||||
orientation: vertical;
|
||||
children: [ "inputbar", "listbox" ];
|
||||
}
|
||||
|
||||
listbox {
|
||||
spacing: 10px;
|
||||
padding: 10px 5px 10px 5px;
|
||||
background-color: transparent;
|
||||
orientation: vertical;
|
||||
children: [ "message", "listview" ];
|
||||
}
|
||||
|
||||
//----- Inputbar -----//
|
||||
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 40px 40px 45px;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/bspwm/assets/ka-rofi.webp", width);
|
||||
text-color: @foreground;
|
||||
orientation: horizontal;
|
||||
children: [ "textbox-prompt-colon", "entry" ];
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 12px 15px;
|
||||
border-radius: 8px;
|
||||
background-color: @background-alt;
|
||||
text-color: inherit;
|
||||
}
|
||||
entry {
|
||||
enabled: true;
|
||||
expand: true;
|
||||
padding: 12px 16px;
|
||||
border-radius: 8px;
|
||||
background-color: @background-alt;
|
||||
text-color: inherit;
|
||||
cursor: text;
|
||||
placeholder: "Search";
|
||||
placeholder-color: inherit;
|
||||
}
|
||||
dummy {
|
||||
expand: true;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
//----- Listview -----//
|
||||
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 3;
|
||||
lines: 5;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 1px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
//----- Elements -----//
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @selected;
|
||||
text-color: @background;
|
||||
}
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
size: 24px;
|
||||
cursor: inherit;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
//----- Message -----//
|
||||
|
||||
message {
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox {
|
||||
padding: 12px;
|
||||
border-radius: 5px;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
error-message {
|
||||
padding: 12px;
|
||||
border-radius: 5px;
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
@@ -6,8 +6,7 @@
|
||||
# ██║ ╚═╝ ██║███████╗██████╔╝██║██║ ██║ ╚██████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║╚██████╔╝███████╗
|
||||
# ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||
#
|
||||
# Author : gh0stzk
|
||||
# Url : https://github.com/gh0stzk/dotfiles
|
||||
#
|
||||
# Info : This script uses playerctl and mpc to control the multimedia playback
|
||||
# "stop, pause, play, next, previous" of different players like
|
||||
# spotify, ncmpcpp, clementine, strawberry and others.
|
||||
|
||||
@@ -5,88 +5,71 @@
|
||||
# ██╔══██║██╔═══╝ ██╔═══╝ ╚════██║ ██║ ██╔══██║██║ ██║██║╚██╗██║██║ ██╔══██║██╔══╝ ██╔══██╗
|
||||
# ██║ ██║██║ ██║ ███████║ ███████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╗██║ ██║███████╗██║ ██║
|
||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
|
||||
# Script to control prefered apps to launch for all themes
|
||||
#
|
||||
|
||||
WIDGET_DIR="$HOME/.config/bspwm/eww"
|
||||
case "$1" in
|
||||
--menu)
|
||||
rofi -show drun \
|
||||
-theme $HOME/.config/bspwm/karla/launcher.rasi;;
|
||||
|
||||
|
||||
--terminal)
|
||||
alacritty;;
|
||||
|
||||
--floating)
|
||||
alacritty --class FloaTerm,Alacritty \
|
||||
-o window.dimensions.lines=22 \
|
||||
window.dimensions.columns=90;;
|
||||
|
||||
--update)
|
||||
alacritty --hold --class FloaTerm,Alacritty \
|
||||
-o window.dimensions.lines=22 \
|
||||
window.dimensions.columns=90 \
|
||||
-e Updates --update-system;;
|
||||
|
||||
--checkupdates)
|
||||
alacritty --hold --class Updating,Alacritty \
|
||||
-o window.dimensions.lines=22 \
|
||||
window.dimensions.columns=47 \
|
||||
-e Updates --print-updates;;
|
||||
|
||||
--ranger)
|
||||
alacritty --class FloaTerm,Alacritty \
|
||||
-o window.dimensions.lines=14 \
|
||||
window.dimensions.columns=90 \
|
||||
-e ranger;;
|
||||
|
||||
--nvim)
|
||||
alacritty -e nvim;;
|
||||
|
||||
--music)
|
||||
alacritty --class FloaTerm,Alacritty \
|
||||
-o window.dimensions.lines=18 \
|
||||
window.dimensions.columns=67 \
|
||||
-e ncmpcpp;;
|
||||
|
||||
--fetch)
|
||||
alacritty --hold --class FloaTerm,Alacritty \
|
||||
-o window.dimensions.lines=26 \
|
||||
window.dimensions.columns=40 \
|
||||
-e ~/.local/bin/sysfetch;;
|
||||
|
||||
#Apps
|
||||
--filemanager)
|
||||
thunar;;
|
||||
|
||||
--browser)
|
||||
firefox;;
|
||||
|
||||
--editor)
|
||||
geany;;
|
||||
|
||||
--telegram)
|
||||
telegram;;
|
||||
|
||||
--whats)
|
||||
whatsapp-nativefier --disable-gpu;;
|
||||
|
||||
--soundcontrol)
|
||||
pavucontrol;;
|
||||
|
||||
# Eww Widgets
|
||||
--powermenu)
|
||||
eww -c "$WIDGET_DIR" open --toggle powermenu
|
||||
;;
|
||||
--usercard)
|
||||
eww -c "$WIDGET_DIR" open --toggle launchermenu
|
||||
;;
|
||||
--player)
|
||||
eww -c "$WIDGET_DIR" open --toggle music
|
||||
;;
|
||||
--calendar)
|
||||
eww -c "$WIDGET_DIR" open --toggle date
|
||||
;;
|
||||
*)
|
||||
echo "Not Valid Option"
|
||||
;;
|
||||
esac
|
||||
case "$1" in
|
||||
--menu)
|
||||
rofi -show drun -theme $HOME/.config/bspwm/scripts/Launcher.rasi
|
||||
;;
|
||||
--terminal)
|
||||
alacritty
|
||||
;;
|
||||
--floating)
|
||||
alacritty --class FloaTerm,Alacritty -o window.dimensions.lines=22 window.dimensions.columns=90
|
||||
;;
|
||||
--update)
|
||||
alacritty --hold --class FloaTerm,Alacritty -o window.dimensions.lines=22 window.dimensions.columns=90 -e Updates --update-system
|
||||
;;
|
||||
--checkupdates)
|
||||
alacritty --hold --class Updating,Alacritty -o window.dimensions.lines=22 window.dimensions.columns=47 -e Updates --print-updates
|
||||
;;
|
||||
--ranger)
|
||||
alacritty --class FloaTerm,Alacritty -o window.dimensions.lines=14 window.dimensions.columns=90 -e ranger
|
||||
;;
|
||||
--nvim)
|
||||
alacritty -e nvim
|
||||
;;
|
||||
--music)
|
||||
alacritty --class FloaTerm,Alacritty -o window.dimensions.lines=18 window.dimensions.columns=67 -e ncmpcpp
|
||||
;;
|
||||
--fetch)
|
||||
alacritty --hold --class FloaTerm,Alacritty -o window.dimensions.lines=26 window.dimensions.columns=40 -e ~/.local/bin/sysfetch;;
|
||||
# Apps
|
||||
--filemanager)
|
||||
thunar
|
||||
;;
|
||||
--browser)
|
||||
firefox
|
||||
;;
|
||||
--editor)
|
||||
geany
|
||||
;;
|
||||
--telegram)
|
||||
telegram-desktop
|
||||
;;
|
||||
--whats)
|
||||
whatsapp-nativefier --disable-gpu
|
||||
;;
|
||||
--soundcontrol)
|
||||
pavucontrol
|
||||
;;
|
||||
# Eww Widgets
|
||||
--powermenu)
|
||||
eww -c "$WIDGET_DIR" open --toggle powermenu
|
||||
;;
|
||||
--usercard)
|
||||
eww -c "$WIDGET_DIR" open --toggle launchermenu
|
||||
;;
|
||||
--player)
|
||||
eww -c "$WIDGET_DIR" open --toggle music
|
||||
;;
|
||||
--calendar)
|
||||
eww -c "$WIDGET_DIR" open --toggle date
|
||||
;;
|
||||
*)
|
||||
echo "Not Valid Option"
|
||||
;;
|
||||
esac
|
||||
@@ -2,9 +2,8 @@
|
||||
# ╔═╗╔═╗╦═╗╔═╗╔═╗╔╗╔╔═╗╦ ╦╔═╗╔╦╗╔═╗╦═╗
|
||||
# ╚═╗║ ╠╦╝║╣ ║╣ ║║║╚═╗╠═╣║ ║ ║ ║╣ ╠╦╝
|
||||
# ╚═╝╚═╝╩╚═╚═╝╚═╝╝╚╝╚═╝╩ ╩╚═╝ ╩ ╚═╝╩╚═
|
||||
|
||||
# Author : z0mbi3
|
||||
# Url : https://github.com/gh0stzk/dotfiles
|
||||
#
|
||||
#
|
||||
# Info : Script to take screenshots using maim.
|
||||
|
||||
timestamp=$(date +%d_%m_%Y-%I-%M-%S)
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
# ╠═╣╠╦╝║ ╠═╣ ║ ║╠═╝ ║║╠═╣ ║ ║╣ ╚═╗
|
||||
# ╩ ╩╩╚═╚═╝╩ ╩ ╚═╝╩ ═╩╝╩ ╩ ╩ ╚═╝╚═╝
|
||||
# Script to check for new updates in arch and AUR. Copyright 2023 gh0stzk
|
||||
# Author: z0mbi3
|
||||
# url: https://github.com/gh0stzk
|
||||
#
|
||||
|
||||
get_total_updates() {
|
||||
local total_updates=$(($(checkupdates 2> /dev/null | wc -l || echo 0) + $(paru -Qua 2> /dev/null | wc -l || echo 0)))
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
# ╚████╔╝ ╚██████╔╝███████╗╚██████╔╝██║ ╚═╝ ██║███████╗
|
||||
# ╚═══╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
|
||||
#
|
||||
# gh0stzk
|
||||
# https://github.com/gh0stzk/dotfiles
|
||||
#
|
||||
# This script controls the volume of your system, using pamixer.
|
||||
# 23.09.2023 09:30:24
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user