mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
flakes
This commit is contained in:
commit
beaf5202ca
37 changed files with 1802 additions and 0 deletions
31
home/.config/Thunar/uca.xml
Executable file
31
home/.config/Thunar/uca.xml
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>utilities-terminal</icon>
|
||||
<name>Open Terminal Here</name>
|
||||
<unique-id>1651604010244754-1</unique-id>
|
||||
<command>alacritty --working-directory %f </command>
|
||||
<description>Example for a custom action</description>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>folder</icon>
|
||||
<name>Root</name>
|
||||
<unique-id>1651640324751320-1</unique-id>
|
||||
<command>qsudo thunar %f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>org.xfce.catfish</icon>
|
||||
<name>Search</name>
|
||||
<unique-id>1651908115751880-1</unique-id>
|
||||
<command>catfish --path=%f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
</actions>
|
||||
92
home/.config/flashfocus/flashfocus.yml
Executable file
92
home/.config/flashfocus/flashfocus.yml
Executable file
|
|
@ -0,0 +1,92 @@
|
|||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
## Flashfocus config file
|
||||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
# Opacity of window during flash.
|
||||
flash-opacity: 0.5
|
||||
|
||||
# Windows are restored to this opacity value at the end of a flash.
|
||||
default-opacity: 1
|
||||
|
||||
# Length of flash in milliseconds.
|
||||
time: 500
|
||||
|
||||
# If true, flashes are not faded out. This will improve performance but flashes
|
||||
# won't be smooth.
|
||||
simple: false
|
||||
|
||||
# Number of animation frames in a flash.
|
||||
ntimepoints: 30
|
||||
|
||||
# Set this to false if you don't want windows to flash on focus.
|
||||
flash-on-focus: true
|
||||
|
||||
# Set this to false if you don't want fullscreen windows to flash.
|
||||
flash-fullscreen: true
|
||||
|
||||
# Whether or not to flash windows if they are the only window on the desktop.
|
||||
# Possible values:
|
||||
# 'always':
|
||||
# Always flash lone windows
|
||||
# 'never':
|
||||
# Never flash lone windows
|
||||
# 'on_open_close':
|
||||
# Lone windows will be flashed only if a) if they were just opened and b)
|
||||
# if another window was just closed.
|
||||
# 'on_switch':
|
||||
# Lone windows will be flashed only upon switching desktops.
|
||||
flash-lone-windows: 'always'
|
||||
|
||||
|
||||
# Defining window-specific flash rules
|
||||
#
|
||||
# X11-based window managers (e.g i3, bspwm)
|
||||
# -----------------------------------------
|
||||
# Flash rules are defined by matching the WM_CLASS property of a window. To get
|
||||
# the WM_CLASS property use 'xprop WM_CLASS' and click on a window. The
|
||||
# property is a tuple of the form (window-id, window-class). The window-class
|
||||
# is usually the name of the application, but not always.
|
||||
#
|
||||
#
|
||||
# Say I'd like to set all 'termite' windows to 80% opacity but leave other
|
||||
# windows at full opacity:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# I also would prefer that firefox windows are not flashed on focus:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# For more complicated rules, you can use (python-style) regexes:
|
||||
#
|
||||
# rules:
|
||||
# - window-id: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# Sway
|
||||
# ----
|
||||
# Native wayland apps can be matched using the app_id and window name. These
|
||||
# can be found using `swaymsg -t get_tree`. XWayland apps are matched with
|
||||
# using WM_CLASS as above (this can also be found with `swaymsg`)
|
||||
#
|
||||
# Given that termite is wayland native and firefox is not, the rules above
|
||||
# could instead be written:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - app-id: termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
# rules:
|
||||
# - window-name: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
88
home/.config/neofetch/config.conf
Executable file
88
home/.config/neofetch/config.conf
Executable file
|
|
@ -0,0 +1,88 @@
|
|||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
info "OS" distro
|
||||
info "Host" model
|
||||
info "Kernel" kernel
|
||||
info "Uptime" uptime
|
||||
info "Packages" packages
|
||||
info "Shell" shell
|
||||
info "WM" wm
|
||||
info "WM Theme" wm_theme
|
||||
info "Theme" theme
|
||||
info "Icons" icons
|
||||
info "Terminal" term
|
||||
info "CPU" cpu
|
||||
info "GPU" gpu
|
||||
info "Memory" memory
|
||||
info "Disk" disk
|
||||
info cols
|
||||
}
|
||||
title_fqdn="off"
|
||||
kernel_shorthand="on"
|
||||
distro_shorthand="tiny"
|
||||
os_arch="off"
|
||||
uptime_shorthand="tiny"
|
||||
memory_percent="on"
|
||||
memory_unit="gib"
|
||||
package_managers="tiny"
|
||||
shell_path="off"
|
||||
shell_version="off"
|
||||
speed_type="bios_limit"
|
||||
speed_shorthand="on"
|
||||
cpu_brand="off"
|
||||
cpu_speed="off"
|
||||
cpu_cores="off"
|
||||
cpu_temp="C"
|
||||
gpu_brand="off"
|
||||
gpu_type="all"
|
||||
refresh_rate="off"
|
||||
gtk_shorthand="on"
|
||||
gtk2="off"
|
||||
gtk3="on"
|
||||
public_ip_host="http://ident.me"
|
||||
public_ip_timeout=2
|
||||
local_ip_interface=('auto')
|
||||
de_version="off"
|
||||
disk_show=('/')
|
||||
disk_subtitle="dir"
|
||||
disk_percent="on"
|
||||
music_player="auto"
|
||||
song_format="%artist% - %album% - %title%"
|
||||
song_shorthand="off"
|
||||
mpc_args=()
|
||||
colors=(distro)
|
||||
bold="on"
|
||||
underline_enabled="on"
|
||||
underline_char="-"
|
||||
separator=":"
|
||||
block_range=(0 15)
|
||||
color_blocks="on"
|
||||
block_width=3
|
||||
block_height=1
|
||||
col_offset="auto"
|
||||
bar_char_elapsed="-"
|
||||
bar_char_total="="
|
||||
bar_border="on"
|
||||
bar_length=15
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
memory_display="on"
|
||||
battery_display="on"
|
||||
disk_display="on"
|
||||
image_backend="pixterm"
|
||||
image_source="auto"
|
||||
ascii_distro="auto"
|
||||
ascii_colors=(distro)
|
||||
ascii_bold="on"
|
||||
image_loop="off"
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
crop_mode="normal"
|
||||
crop_offset="center"
|
||||
image_size="auto"
|
||||
catimg_size="2"
|
||||
gap=3
|
||||
yoffset=0
|
||||
xoffset=0
|
||||
background_color=
|
||||
stdout="off"
|
||||
25
home/.config/networkmanager-dmenu/config.ini
Executable file
25
home/.config/networkmanager-dmenu/config.ini
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
[dmenu]
|
||||
dmenu_command = rofi -dmenu -theme ~/.config/networkmanager-dmenu/networkmenu.rasi
|
||||
# dmenu_command = /usr/bin/dmenu
|
||||
# # Note that dmenu_command can contain arguments as well like:
|
||||
# # `dmenu_command = rofi -dmenu -i -theme nmdm`
|
||||
# # `dmenu_command = rofi -dmenu -width 30 -i`
|
||||
# # `dmenu_command = dmenu -i -l 25 -b -nb #909090 -nf #303030`
|
||||
rofi_highlight = True
|
||||
# compact = <True or False> # (Default: False). Remove extra spacing from display
|
||||
compact = True
|
||||
# pinentry = <Pinentry command> # (Default: None) e.g. `pinentry-gtk`
|
||||
# wifi_chars = <string of 4 unicode characters representing 1-4 bars strength>
|
||||
# wifi_chars =
|
||||
# list_saved = <True or False> # (Default: False) list saved connections
|
||||
|
||||
[dmenu_passphrase]
|
||||
# # Uses the -password flag for Rofi, -x for bemenu. For dmenu, sets -nb and
|
||||
# # -nf to the same color or uses -P if the dmenu password patch is applied
|
||||
# # https://tools.suckless.org/dmenu/patches/password/
|
||||
# obscure = True
|
||||
# obscure_color = #222222
|
||||
|
||||
[editor]
|
||||
terminal = urxvt
|
||||
gui_if_available = True
|
||||
154
home/.config/networkmanager-dmenu/networkmenu.rasi
Executable file
154
home/.config/networkmanager-dmenu/networkmenu.rasi
Executable file
|
|
@ -0,0 +1,154 @@
|
|||
/* Copyright (C) 2020-2022 Aditya Shakya <adi1090x@gmail.com> */
|
||||
/* Everyone is permitted to copy and distribute copies of this file under GNU-GPL3 */
|
||||
|
||||
configuration {
|
||||
show-icons: false;
|
||||
display-drun: ":";
|
||||
drun-display-format: "{name}";
|
||||
disable-history: false;
|
||||
sidebar-mode: false;
|
||||
location: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
BG: #000000;
|
||||
BGA: #16161e;
|
||||
FG: #c0caf5;
|
||||
BDR: #7aa2f7;
|
||||
SEL: #7aa2f7;
|
||||
UGT: #db4b4b;
|
||||
IMG: #db4b4b;
|
||||
ON: #9ece6a;
|
||||
OFF: #565f89;
|
||||
font: "Sofia Pro 15";
|
||||
}
|
||||
window {
|
||||
transparency: "real";
|
||||
background-color: @BG;
|
||||
text-color: @FG;
|
||||
border-radius: 15px;
|
||||
width: 400px;
|
||||
height: 425px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 4px 4px 6px 6px;
|
||||
background-color: @BGA;
|
||||
text-color: @FG;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: "";
|
||||
background-color: @BGA;
|
||||
text-color: @IMG;
|
||||
padding: 4px 0px 0px 8px;
|
||||
font: "Material Design Icons Desktop 15";
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ textbox-prompt-colon, prompt, entry ];
|
||||
background-color: @BGA;
|
||||
text-color: @FG;
|
||||
expand: false;
|
||||
border: 0px 0px 0px 0px;
|
||||
border-radius: 10px;
|
||||
border-color: @BDR;
|
||||
margin: 0px 0px 0px 0px;
|
||||
padding: 5px 0px 3px 0px;
|
||||
position: center;
|
||||
}
|
||||
|
||||
|
||||
entry {
|
||||
background-color: @BGA;
|
||||
text-color: @FG;
|
||||
placeholder-color: @FG;
|
||||
expand: true;
|
||||
horizontal-align: 0;
|
||||
placeholder: "";
|
||||
blink: true;
|
||||
padding: 4px 0px 0px 0px;
|
||||
}
|
||||
|
||||
case-indicator {
|
||||
background-color: @BG;
|
||||
text-color: @FG;
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
|
||||
listview {
|
||||
background-color: @BG;
|
||||
columns: 1;
|
||||
lines: 7;
|
||||
spacing: 5px;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @BG;
|
||||
children: [ inputbar, listview ];
|
||||
spacing: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: @BG;
|
||||
text-color: @FG;
|
||||
orientation: horizontal;
|
||||
border-radius: 10px;
|
||||
padding: 6px 6px 6px 6px;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
size: 24px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
expand: true;
|
||||
horizontal-align: 0;
|
||||
vertical-align: 0;
|
||||
margin: 2px 0px 2px 2px;
|
||||
}
|
||||
|
||||
element normal.urgent,
|
||||
element alternate.urgent {
|
||||
background-color: @UGT;
|
||||
text-color: @FG;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
element normal.active,
|
||||
element alternate.active {
|
||||
background-color: @BGA;
|
||||
text-color: @FG;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @SEL;
|
||||
text-color: @BG;
|
||||
border: 0px;
|
||||
border-radius: 10px;
|
||||
border-color: @BDR;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @UGT;
|
||||
text-color: @FG;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @BGA;
|
||||
color: @FG;
|
||||
}
|
||||
6
home/.config/polybar/scripts/tray
Executable file
6
home/.config/polybar/scripts/tray
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
u=$(xprop -name "Polybar tray window" _NET_WM_PID | awk '{print $3}')
|
||||
if [ $u -Z ]
|
||||
then polybar tray &
|
||||
else kill $u
|
||||
fi
|
||||
111
home/.config/rofi/config.rasi
Executable file
111
home/.config/rofi/config.rasi
Executable file
|
|
@ -0,0 +1,111 @@
|
|||
configuration{
|
||||
modi: "run,drun,window";
|
||||
lines: 5;
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
terminal: "alacritty";
|
||||
drun-display-format: "{name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " Window";
|
||||
sidebar-mode: true;
|
||||
}
|
||||
@theme "/dev/null"
|
||||
* {
|
||||
background-color: #000000;
|
||||
text-color: #7AA2F7;
|
||||
black: #000000;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
width: 800;
|
||||
font: "Overpass 16";
|
||||
}
|
||||
window {
|
||||
height: 500px;
|
||||
border: 0px;
|
||||
border-radius: 15;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
children: [ mode-switcher, inputbar, listview ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @black;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @black;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 10 10 0;
|
||||
margin: 10 10 0 10;
|
||||
columns: 4;
|
||||
spacing: 15;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
orientation: vertical;
|
||||
spacing: 10;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 56px;
|
||||
horizontal-align: 0.5;
|
||||
background-color: @clear;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue ;
|
||||
text-color: @black ;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
expand: true;
|
||||
background-color: @clear;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
margin: 5 10 5 10;
|
||||
padding: 10 50 5 50;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @blue ;
|
||||
text-color: @black;
|
||||
border-radius: 10px;
|
||||
}
|
||||
42
home/.config/rofi/powermenu/powermenu.rasi
Executable file
42
home/.config/rofi/powermenu/powermenu.rasi
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
* {
|
||||
background: #00000000;
|
||||
black: #000000;
|
||||
blue: #7aa2f7;
|
||||
deepblue: #03339c;
|
||||
}
|
||||
* {
|
||||
background-color: #00000000;
|
||||
text-color: @blue;
|
||||
font: "Material Design Icons 60";
|
||||
}
|
||||
prompt,inputbar,entry,textbox-prompt-colon { enabled: false; }
|
||||
#window {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: @background;
|
||||
transparency: "real";
|
||||
children: [dummy, listview, dummy];
|
||||
}
|
||||
#dummyofdummy {
|
||||
children: [dummy, listview, dummy];
|
||||
}
|
||||
#dummy {
|
||||
expand: true;
|
||||
}
|
||||
listview {
|
||||
lines: 4;
|
||||
layout: horizontal;
|
||||
children: [element];
|
||||
margin: 100px 0px 100px 585px;
|
||||
}
|
||||
#element {
|
||||
padding: 30px 40px;
|
||||
background-color: @black;
|
||||
border-color: #00000000;
|
||||
border-radius: 20px;
|
||||
text-color: @black;
|
||||
}
|
||||
#element.selected {
|
||||
text-color: @black;
|
||||
background-color: @deepblue;
|
||||
}
|
||||
28
home/.config/rofi/powermenu/powermenu.sh
Executable file
28
home/.config/rofi/powermenu/powermenu.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rofi_command="rofi -theme $HOME/.config/rofi/powermenu/powermenu.rasi -p "power""
|
||||
|
||||
#### Options ###
|
||||
power_off="襤 "
|
||||
reboot="勒 "
|
||||
lock=" "
|
||||
suspend=" "
|
||||
log_out=" "
|
||||
# Variable passed to rofi
|
||||
options="$power_off\n$reboot\n$suspend\n$log_out"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
|
||||
case $chosen in
|
||||
$power_off)
|
||||
systemctl poweroff
|
||||
;;
|
||||
$reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
$suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
$log_out)
|
||||
bspc quit
|
||||
;;
|
||||
esac
|
||||
109
home/.config/rofi/window-switcher/box.rasi
Executable file
109
home/.config/rofi/window-switcher/box.rasi
Executable file
|
|
@ -0,0 +1,109 @@
|
|||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
disable-history: true;
|
||||
fullscreen: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: false;
|
||||
display-window: "";
|
||||
window-format : "{t}";
|
||||
window-thumbnail: false;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: #000000;
|
||||
black: #000000;
|
||||
text-color: #7AA2F7;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
font: "Overpass 12";
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0px;
|
||||
border-color: @deepblue;
|
||||
border-radius: 20px;
|
||||
height: 150;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: false;
|
||||
padding: 0.25% 0.75% 0% -0.25%;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: false;
|
||||
placeholder-color: @blue;
|
||||
expand: false;
|
||||
horizontal-align: 0;
|
||||
placeholder: "Switch to...";
|
||||
padding: 0% 0% 0% 0%;
|
||||
blink: true;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: false;
|
||||
children: [ prompt, entry];
|
||||
expand: false;
|
||||
border: 0.3% 0% 0.3% 0%;
|
||||
border-radius: 100%;
|
||||
border-color: @deepblue;
|
||||
margin: 0% 0% 0% 0%;
|
||||
}
|
||||
|
||||
listview {
|
||||
margin: 0.3% 0% 0% 0%;
|
||||
columns: 8;
|
||||
row: 1;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
fixed-height : true;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border: 0% 0% 0% 0%;
|
||||
border-radius: 0% 0% 0% 0%;
|
||||
border-color: @accent;
|
||||
children: [ inputbar, listview];
|
||||
spacing: -100%;
|
||||
padding: 1.5% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
border-radius: 75px;
|
||||
padding: 2% 0% 0% 0%;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 50px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
expand: false;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.9;
|
||||
margin: 1% 0.5% 0.7% 0.5%;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue;
|
||||
border: 3px;
|
||||
border-radius: 15px;
|
||||
border-color: @deepblue;
|
||||
}
|
||||
|
||||
element-text, element-icon, element {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
listview, element, element selected, element-icon, element-text {
|
||||
cursor: pointer;
|
||||
}
|
||||
109
home/.config/rofi/window-switcher/box.rasi.save
Executable file
109
home/.config/rofi/window-switcher/box.rasi.save
Executable file
|
|
@ -0,0 +1,109 @@
|
|||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
disable-history: true;
|
||||
fullscreen: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: false;
|
||||
display-window: "";
|
||||
window-format : "{t}";
|
||||
window-thumbnail: false;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: #000000;
|
||||
black: #000000;
|
||||
text-color: #7AA2F7;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
font: "Overpass 16";
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0px;
|
||||
border-color: @deepblue;
|
||||
border-radius: 20px;
|
||||
height: 18.8%;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: false;
|
||||
padding: 0.25% 0.75% 0% -0.25%;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: false;
|
||||
placeholder-color: @blue;
|
||||
expand: false;
|
||||
horizontal-align: 0;
|
||||
placeholder: "Switch to...";
|
||||
padding: 0% 0% 0% 0%;
|
||||
blink: true;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: false;
|
||||
children: [ prompt, entry];
|
||||
expand: false;
|
||||
border: 0.3% 0% 0.3% 0%;
|
||||
border-radius: 100%;
|
||||
border-color: @deepblue;
|
||||
margin: 0% 0% 0% 0%;
|
||||
}
|
||||
|
||||
listview {
|
||||
margin: 0.3% 0% 0% 0%;
|
||||
columns: 6;
|
||||
row: 1;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
fixed-height : true;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border: 0% 0% 0% 0%;
|
||||
border-radius: 0% 0% 0% 0%;
|
||||
border-color: @accent;
|
||||
children: [ inputbar, listview];
|
||||
spacing: -100%;
|
||||
padding: 1.5% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
border-radius: 100px;
|
||||
padding: 2% 0% 0% 0%;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 100px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
expand: false;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.9;
|
||||
margin: 1% 0.5% 0.7% 0.5%;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue;
|
||||
border: 3px;
|
||||
border-radius: 15px;
|
||||
border-color: @deepblue;
|
||||
}
|
||||
|
||||
element-text, element-icon, element {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
listview, element, element selected, element-icon, element-text {
|
||||
cursor: pointer;
|
||||
}
|
||||
13
home/.config/rofi/window-switcher/window-switcher.sh
Executable file
13
home/.config/rofi/window-switcher/window-switcher.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
path=$HOME/.config/rofi/window-switcher/box.rasi
|
||||
windows="$(xprop -root _NET_CLIENT_LIST | grep -o '0x' | wc -l )"
|
||||
if (($windows<8)); then
|
||||
width=$(($windows*150))
|
||||
else
|
||||
width=1200
|
||||
fi
|
||||
rofi \
|
||||
-no-lazy-grab \
|
||||
-show window \
|
||||
-theme $path \
|
||||
-theme-str 'window {width: '$width';}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue