FIXED
This commit is contained in:
1 parent
a60e58fd65
commit
49872a1504
11 files changed
+110
-167
No files matched your search
@@ -5,9 +5,7 @@
|
||||
# ██╔═██╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██╔══██╗██║██║ ██╔══╝
|
||||
# ██║ ██╗██║ ██║██║ ██║███████╗██║ ██║ ██║ ██║██║╚██████╗███████╗
|
||||
# ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚══════╝
|
||||
# Author : z0mbi3
|
||||
# Url : https://github.com/gh0stzk/dotfiles
|
||||
# About : This file will configure and launch the rice.
|
||||
#
|
||||
#
|
||||
|
||||
# Set bspwm configuration for Karla
|
||||
@@ -27,7 +25,7 @@ set_bspwm_config() {
|
||||
set_term_config() {
|
||||
sed -i "$HOME"/.config/alacritty/fonts.yml \
|
||||
-e "s/family: .*/family: JetBrainsMono Nerd Font/g" \
|
||||
-e "s/size: .*/size: 10/g"
|
||||
-e "s/size: .*/size: 6/g"
|
||||
|
||||
sed -i "$HOME"/.config/alacritty/rice-colors.yml \
|
||||
-e "s/colors: .*/colors: *karla_z0mbi3_night/"
|
||||
@@ -48,7 +46,7 @@ set_stalonetray_config() {
|
||||
sed -i "$HOME"/.config/bspwm/stalonetrayrc \
|
||||
-e "s/background .*/background \"#0E1113\"/" \
|
||||
-e "s/vertical .*/vertical true/" \
|
||||
-e "s/geometry .*/geometry 1x1-50+46/" \
|
||||
-e "s/geometry .*/geometry 1x1-58+46/" \
|
||||
-e "s/grow_gravity .*/grow_gravity NE/" \
|
||||
-e "s/icon_gravity .*/icon_gravity NE/"
|
||||
}
|
||||
@@ -110,6 +108,17 @@ set_jgmenu_colors() {
|
||||
-e 's/color_sep_fg = .*/color_sep_fg = #373542/'
|
||||
}
|
||||
|
||||
# Set Rofi launcher config
|
||||
set_launcher_config () {
|
||||
sed -i "$HOME/.config/bspwm/scripts/Launcher.rasi" \
|
||||
-e 's/\(font: \).*/\1"JetBrainsMono Nerd Font Bold 9";/' \
|
||||
-e 's/\(background: \).*/\1#0E1113F7;/' \
|
||||
-e 's/\(background-alt: \).*/\1#0E1113F5;/' \
|
||||
-e 's/\(foreground: \).*/\1#afb1db;/' \
|
||||
-e 's/\(selected: \).*/\1#3d7fea;/' \
|
||||
-e 's/[^/]*-rofi/ka-rofi/'
|
||||
}
|
||||
|
||||
# Launch the bar
|
||||
launch_bars() {
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -1,9 +1,6 @@
|
||||
// # z0mbi3 - https://github.com/gh0stzk/dotfiles
|
||||
|
||||
|
||||
/** Original Work
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : https://github.com/adi1090x/rofi
|
||||
**/
|
||||
//----- Main Configuration -----//
|
||||
|
||||
configuration {
|
||||
modi: "drun";
|
||||
@@ -19,16 +16,18 @@ configuration {
|
||||
me-accept-entry: "MousePrimary";
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
//----- Global Properties -----//
|
||||
|
||||
* {
|
||||
font: "JetBrainsMono Nerd Font Bold 9";
|
||||
background: #0E1113F7;
|
||||
background-alt: #0E1113;
|
||||
foreground: #afb1db;
|
||||
selected: #3d7fea;
|
||||
font: "JetBrainsMono Nerd Font Bold 9";
|
||||
background: #1A1B26;
|
||||
background-alt: #1A1B26E0;
|
||||
foreground: #c0caf5;
|
||||
selected: #7aa2f7;
|
||||
}
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
//----- Main Window -----//
|
||||
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
@@ -46,7 +45,8 @@ window {
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
//----- Main Box -----//
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
@@ -63,7 +63,8 @@ listbox {
|
||||
children: [ "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
//----- Inputbar -----//
|
||||
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
@@ -99,9 +100,8 @@ dummy {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
//----- Listview -----//
|
||||
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 3;
|
||||
@@ -120,7 +120,8 @@ listview {
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
//----- Elements -----//
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
@@ -135,7 +136,7 @@ element normal.normal {
|
||||
text-color: inherit;
|
||||
}
|
||||
element selected.normal {
|
||||
background-image: linear-gradient(0deg,#353c52,#7a44e3);
|
||||
background-color: @selected;
|
||||
text-color: @background;
|
||||
}
|
||||
element-icon {
|
||||
@@ -152,7 +153,8 @@ element-text {
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
//----- Message -----//
|
||||
|
||||
message {
|
||||
background-color: transparent;
|
||||
}
|
||||
@@ -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
|
||||
#
|
||||
|
||||
@@ -16,13 +16,9 @@ super + shift + Return
|
||||
OpenApps --floating
|
||||
|
||||
# Menu aplicaciones
|
||||
alt + @space
|
||||
super + d
|
||||
OpenApps --menu
|
||||
|
||||
# Theme Selector
|
||||
#alt + @space
|
||||
#RiceSelector
|
||||
|
||||
# Scratchpad
|
||||
super + alt + o
|
||||
tdrop -a -w 70% -h 35% -y 0 -x 15% --class scratch alacritty --class=scratch
|
||||
@@ -50,8 +46,8 @@ alt + {f,g,e,p,w,r,t,s,v,m}
|
||||
OpenApps --music}
|
||||
|
||||
# Hide/Show Bar (Polybar and/or eww)
|
||||
super + {h,u}
|
||||
HideBar {-h,-u}
|
||||
#super + {h,u}
|
||||
# HideBar {-h,-u}
|
||||
|
||||
# Change transparency on focused window
|
||||
ctrl + alt + {plus,minus,t}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ auto_update "yes"
|
||||
|
||||
# For network
|
||||
bind_to_address "127.0.0.1"
|
||||
#bind_to_address "~/.config/mpd/socket"
|
||||
bind_to_address "~/.config/mpd/socket"
|
||||
|
||||
# Inputs
|
||||
|
||||
|
||||
Reference in new issue
Block a user