Compare commits
3 Commits
4d8157befe
...
16eea121b1
Author | SHA1 | Date |
---|---|---|
fanyx | 16eea121b1 | |
fanyx | ea39007adc | |
fanyx | e02c4e1fba |
|
@ -12,18 +12,21 @@ white = #ebdbb2
|
|||
aqua = #689d6a
|
||||
alert = #A54242
|
||||
disabled = #76573A
|
||||
; character clothing colors
|
||||
color-1 = #C5A55C
|
||||
color-2 = #B43F1C
|
||||
color-3 = #D0C0AD
|
||||
color-4 = #88748F
|
||||
; crystal-1 = #BA3320
|
||||
; crystal-2 = #CDB648
|
||||
; crystal-3 = #568125
|
||||
; crystal-4 = #4048A4
|
||||
crystal-1 = #D57F5E
|
||||
crystal-2 = #E7D570
|
||||
crystal-3 = #B4D175
|
||||
crystal-4 = #A3B3CA
|
||||
; deep crystal colors
|
||||
crystal-1 = #BA3320
|
||||
crystal-2 = #CDB648
|
||||
crystal-3 = #568125
|
||||
crystal-4 = #4048A4
|
||||
; light crystal colors
|
||||
; crystal-1 = #D57F5E
|
||||
; crystal-2 = #E7D570
|
||||
; crystal-3 = #B4D175
|
||||
; crystal-4 = #A3B3CA
|
||||
|
||||
[fonts]
|
||||
|
||||
|
@ -37,6 +40,7 @@ monitor = DP-0
|
|||
|
||||
width = 100%
|
||||
height = 30
|
||||
padding-right = 2
|
||||
enable-ipc = true
|
||||
fixed-center = true
|
||||
wm-restack = bspwm
|
||||
|
@ -53,8 +57,8 @@ font-2 = ${fonts.font-2}
|
|||
font-3 = ${fonts.font-3}
|
||||
|
||||
modules-left = bspwm xwindow
|
||||
modules-center = date
|
||||
modules-right = pulseaudio cpu memory eth
|
||||
modules-center = mpd
|
||||
modules-right = pulseaudio cpu memory eth sep date
|
||||
|
||||
[bar/secondary]
|
||||
monitor = DP-4
|
||||
|
@ -75,8 +79,8 @@ font-2 = ${fonts.font-2}
|
|||
font-3 = ${fonts.font-3}
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = date
|
||||
# modules-right =
|
||||
# modules-center = date
|
||||
modules-right = date sep
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
@ -116,6 +120,13 @@ label-empty-foreground = ${colors.disabled}
|
|||
label-separator = |
|
||||
label-separator-foreground = ${colors.disabled}
|
||||
|
||||
[module/sep]
|
||||
type = custom/text
|
||||
content = |
|
||||
|
||||
content-foreground = ${colors.disabled}
|
||||
content-padding = 2
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
|
||||
|
@ -137,8 +148,10 @@ ramp-volume-0 = " "
|
|||
ramp-volume-1 = " "
|
||||
ramp-volume-2 = " "
|
||||
ramp-volume-font = 1
|
||||
ramp-volume-foreground = ${colors.crystal-1}
|
||||
label-volume = %percentage%%
|
||||
label-volume-font = 3
|
||||
; label-volume-foreground = ${colors.foreground}
|
||||
|
||||
format-muted-padding = 2
|
||||
label-muted = ""
|
||||
|
@ -150,32 +163,35 @@ click-middle = pavucontrol
|
|||
type = internal/cpu
|
||||
interval = 2
|
||||
|
||||
format-foreground = ${colors.crystal-2}
|
||||
format-padding = 2
|
||||
format-prefix = " "
|
||||
format-prefix-font = 1
|
||||
format-prefix-foreground = ${colors.crystal-2}
|
||||
label = %percentage:2%%
|
||||
label-font = 3
|
||||
; label-foreground = ${colors.foreground}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
|
||||
format-foreground = ${colors.crystal-3}
|
||||
format-padding = 2
|
||||
format-prefix = " "
|
||||
format-prefix-font = 1
|
||||
format-prefix-foreground = ${colors.crystal-3}
|
||||
label = %percentage_used:2%%
|
||||
label-font = 3
|
||||
; label-foreground = ${colors.foreground}
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-foreground = ${colors.crystal-4}
|
||||
format-connected-padding = 2
|
||||
format-connected-prefix-padding-right = 2
|
||||
format-connected-prefix-font = 1
|
||||
format-connected-prefix-foreground = ${colors.crystal-4}
|
||||
label-connected-font = 3
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR="$HOME/.config/rofi"
|
||||
rofi_command="rofi -theme $DIR/themes/screenshot.rasi"
|
||||
|
||||
time=`date +%Y-%m-%d-%H-%M-%S`
|
||||
dir="$HOME/Pictures/Screenshots"
|
||||
file="Screenshot_${time}.png"
|
||||
|
||||
screenleft="< "
|
||||
area=""
|
||||
screenright=" >"
|
||||
|
||||
shotscreenleft() {
|
||||
cd ${dir} && sleep 0.5 && maim -u -f png -g 2560x1440+0+0 | tee "$file" | xclip -selection clipboard -t image/png
|
||||
}
|
||||
|
||||
shotscreenright() {
|
||||
cd ${dir} && sleep 0.5 && maim -u -f png -g 2560x1440+2560+0 | tee "$file" | xclip -selection clipboard -t image/png
|
||||
}
|
||||
|
||||
shotarea() {
|
||||
cd ${dir} && sleep 0.5 && maim -u -f png -s -b 2 -c 0.35,0.55,0.85,0.25 -l | tee "$file" | xclip -selection clipboard -t image/png
|
||||
}
|
||||
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
mkdir -p "$dir"
|
||||
fi
|
||||
|
||||
options="$screenleft\n$area\n$screenright"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
|
||||
case $chosen in
|
||||
$screenleft)
|
||||
shotscreenleft
|
||||
;;
|
||||
$area)
|
||||
shotarea
|
||||
;;
|
||||
$screenright)
|
||||
shotscreenright
|
||||
;;
|
||||
esac
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
* {
|
||||
background: #21201E;
|
||||
foreground: #EAD17F;
|
||||
selected: #F0C674;
|
||||
highlight: #8ABEB7;
|
||||
urgent: #BF616A;
|
||||
on: #3E2441;
|
||||
off: #76573A;
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
configuration {
|
||||
font: "Font Awesome 5 Free 20";
|
||||
show-icons: false;
|
||||
disable-history: false;
|
||||
click-to-exit: true;
|
||||
}
|
||||
|
||||
@import "colors.rasi"
|
||||
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
border-radius: 0px;
|
||||
location: center;
|
||||
width: 500px;
|
||||
x-offset: -15px;
|
||||
y-offset: -45px;
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 3;
|
||||
lines: 1;
|
||||
spacing: 12px;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @background;
|
||||
children: [ listview ];
|
||||
spacing: 12px;
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
orientation: vertical;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
font: "Font Awesome 5 Free 20";
|
||||
expand: true;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
margin: 48px 0px 48px 0px;
|
||||
}
|
||||
|
||||
element normal.urgent,
|
||||
element alternate.urgent {
|
||||
background-color: @off;
|
||||
text-color: @background;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
element normal.active,
|
||||
element alternate.active {
|
||||
background-color: @on;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected;
|
||||
text-color: @background;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @highlight;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @on;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @off;
|
||||
color: @background;
|
||||
}
|
Loading…
Reference in New Issue