Updates
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
follow = mouse
|
||||
width = 400
|
||||
origin = "top-center"
|
||||
offset = "0x80"
|
||||
offset = "0x20"
|
||||
indicate_hidden = yes
|
||||
shrink = no
|
||||
separator_height = 1
|
||||
transparency = 0
|
||||
padding = 8
|
||||
padding = 10
|
||||
horizontal_padding = 8
|
||||
frame_width = 2
|
||||
frame_color = "#A6CC70"
|
||||
frame_color = "#5c6773"
|
||||
separator_color = frame
|
||||
sort = yes
|
||||
idle_threshold = 120
|
||||
@@ -57,16 +57,16 @@
|
||||
|
||||
|
||||
[urgency_low]
|
||||
background="#ffffff"
|
||||
background="#eeeeee"
|
||||
foreground="#050505"
|
||||
timeout = 3
|
||||
|
||||
[urgency_normal]
|
||||
background="#ffffff"
|
||||
background="#eeeeee"
|
||||
foreground="#050505"
|
||||
timeout = 3
|
||||
|
||||
[urgency_critical]
|
||||
background="#ffffff"
|
||||
background="#eeeeee"
|
||||
foreground="#050505"
|
||||
timeout = 0
|
||||
|
||||
@@ -2,6 +2,11 @@ set $mod Mod4
|
||||
font pango:JuliaMono 10
|
||||
floating_modifier $mod
|
||||
|
||||
# bindings idea:
|
||||
# mod + KEY = open sth
|
||||
# mod + shift = move sth
|
||||
# mod + ctrl = manipulate display
|
||||
|
||||
# applications
|
||||
bindsym $mod+Return exec --no-startup-id alacritty
|
||||
bindsym $mod+d exec --no-startup-id rofi -theme ~/.config/rofi/light.rasi -show drun
|
||||
@@ -9,12 +14,12 @@ bindsym $mod+Shift+s exec --no-startup-id flameshot gui
|
||||
bindsym XF86Calculator exec --no-startup-id emacs
|
||||
|
||||
# audio and brightness
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 1%-
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 1%+
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
bindsym XF86AudioNext exec --no-startup-id playerctl next
|
||||
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl -p spotify play-pause
|
||||
bindsym XF86AudioNext exec --no-startup-id playerctl -p spotify next
|
||||
bindsym XF86AudioPrev exec --no-startup-id playerctl -p spotify previous
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
|
||||
|
||||
@@ -25,8 +30,12 @@ bindsym Ctrl+Shift+space exec --no-startup-id dunstctl history-pop
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+BackSpace kill
|
||||
|
||||
# lock
|
||||
bindsym $mod+Control+BackSpace exec --no-startup-id xlock -mode maze
|
||||
# lock etc
|
||||
bindsym $mod+Control+BackSpace exec --no-startup-id ~/dots/scripts/powermenu.sh
|
||||
|
||||
# change monitor layout
|
||||
bindsym $mod+Control+d exec --no-startup-id ~/dots/scripts/monitor.sh dual
|
||||
bindsym $mod+Control+s exec --no-startup-id ~/dots/scripts/monitor.sh single
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
@@ -97,6 +106,9 @@ bindsym $mod+Shift+0 move container to workspace $ws10
|
||||
bindsym $mod+Left workspace prev
|
||||
bindsym $mod+Right workspace next
|
||||
|
||||
bindsym $mod+Ctrl+h move workspace to output left
|
||||
bindsym $mod+Ctrl+l move workspace to output right
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
@@ -116,10 +128,10 @@ set $blue "#55b4d4"
|
||||
set $yellow "#e7c547"
|
||||
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused $green $green $black $green $black
|
||||
client.focused $green $green $black $green $green
|
||||
client.focused_inactive $yellow $yellow $black $yellow $black
|
||||
client.unfocused $white $white $black $white $black
|
||||
client.urgent $red $red $white $red $black
|
||||
client.urgent $red $red $white $red $red
|
||||
|
||||
# i3 bar
|
||||
# flaoting on start
|
||||
@@ -129,24 +141,18 @@ for_window [class="flameshot"] floating enable
|
||||
|
||||
# border
|
||||
hide_edge_borders smart
|
||||
for_window [class="^.*"] border pixel 0
|
||||
|
||||
# bar
|
||||
exec_always --no-startup-id ~/dots/scripts/polybar.sh
|
||||
for_window [class="^.*"] border pixel 2
|
||||
|
||||
# gaps
|
||||
gaps inner 10
|
||||
|
||||
# wallpaper
|
||||
exec_always --no-startup-id feh --bg-fill ~/data/Seafile/images/wallpaper/wallpaper.png
|
||||
# desktop (wallpaper, bar, picom)
|
||||
exec_always --no-startup-id ~/dots/scripts/reload_desktop.sh
|
||||
|
||||
# startup
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id keepassxc
|
||||
exec --no-startup-id seafile-applet
|
||||
exec --no-startup-id fcitx5
|
||||
exec --no-startup-id picom --backend glx --no-vsync
|
||||
exec --no-startup-id enact --watch --pos top -n 1
|
||||
exec --no-startup-id libinput-gestures-setup start
|
||||
|
||||
exec_always --no-startup-id notify-send -i ~/data/Seafile/images/anime/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。"
|
||||
exec --no-startup-id redshift-gtk -l 48.13333:11.56667
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# corner-radius = 40;
|
||||
|
||||
# rounded-corners-exclude = [
|
||||
# "class_g = 'i3bar'",
|
||||
# "class_g = 'Polybar'",
|
||||
# ];
|
||||
|
||||
# detect-rounded-corners = true
|
||||
|
||||
shadow = true;
|
||||
shadow-radius = 15;
|
||||
shadow-opacity = 0.2
|
||||
|
||||
shadow-exclude = [
|
||||
"class_g = 'i3-frame'",
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'Firefox'",
|
||||
];
|
||||
@@ -1,13 +1,14 @@
|
||||
[colors]
|
||||
white = #ffffff
|
||||
black = #5c6773
|
||||
grey = #eeeeee
|
||||
green = #a6cc70
|
||||
red = #ff3333
|
||||
|
||||
[bar/bar]
|
||||
|
||||
font-0 = "JuliaMono:pixelsize=10;4"
|
||||
font-1 = "Noto Sans Mono CJK JP:pixelsize=10;3"
|
||||
font-0 = "PT Sans:pixelsize=10:weight=bold;4"
|
||||
font-1 = "Noto Sans Mono CJK JP:pixelsize=10:weight=bold;3"
|
||||
font-2 = "FontAwesome:pixelsize=10;4"
|
||||
|
||||
monitor = ${env:MON}
|
||||
@@ -18,18 +19,18 @@ scroll-down = i3wm-wsnext
|
||||
fixed-center = true
|
||||
|
||||
width = 100%
|
||||
height = 50
|
||||
height = 40
|
||||
|
||||
dpi = ${xrdb:Xft.dpi:-1}
|
||||
|
||||
background = ${colors.white}
|
||||
foreground = ${colors.black}
|
||||
background = ${colors.black}
|
||||
foreground = ${colors.white}
|
||||
|
||||
bottom = false
|
||||
|
||||
screenchange-reload = true
|
||||
|
||||
tray-position = right
|
||||
tray-position = ${env:TRAYPOS:right}
|
||||
tray-scale = 1.0
|
||||
tray-maxsize = 25
|
||||
|
||||
@@ -39,9 +40,9 @@ padding-left = 1
|
||||
padding-right = 1
|
||||
module-margin = 2
|
||||
|
||||
modules-left = logo i3 polywins spotify
|
||||
modules-left = logo i3 polywins sep spotify
|
||||
modules-center =
|
||||
modules-right = backlight pulseaudio battery conservation date time
|
||||
modules-right = cpu sep cpu_temp sep temp sep ram sep backlight sep pulseaudio sep conservation sep battery sep date sep
|
||||
|
||||
[module/i3]
|
||||
strip-wsnumbers = true
|
||||
@@ -63,28 +64,25 @@ ws-icon-8 = 9;九
|
||||
ws-icon-9 = 10;十
|
||||
|
||||
label-focused = %icon%
|
||||
label-focused-background = ${colors.green}
|
||||
label-focused-padding = 1
|
||||
label-focused-padding = 2
|
||||
label-focused-overline = ${colors.green}
|
||||
|
||||
label-unfocused = %icon%
|
||||
label-unfocused-padding = 1
|
||||
label-unfocused-padding = 2
|
||||
|
||||
label-visible = %icon%
|
||||
label-visible-padding = 1
|
||||
label-visible-padding = 2
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-overline = ${colors.red}
|
||||
label-urgent-padding = 1
|
||||
label-urgent-padding = 2
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
date = %a, %d %b
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
date = %H:%M
|
||||
date = %a, %d %b
|
||||
time = %H:%M
|
||||
label = %date% %time%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
@@ -135,7 +133,7 @@ type = custom/script
|
||||
exec = if [ /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode ]; then echo "On"; else echo "Off"; fi
|
||||
click-left = alacritty --command ~/dots/scripts/conservation_mode.sh
|
||||
format = <label>
|
||||
label = %output%
|
||||
label = %output%
|
||||
tail = true
|
||||
|
||||
[module/backlight]
|
||||
@@ -158,10 +156,40 @@ tail = true
|
||||
[module/spotify]
|
||||
type = custom/script
|
||||
interval = 1
|
||||
format = <label>
|
||||
format = <label>
|
||||
#exec = python3 ~/dots/scripts/spotify.py -f '{play_pause} {artist}: {song}' --font=2
|
||||
exec = python3 ~/dots/scripts/spotify.py -f '{artist}: {song}'
|
||||
exec = python3 ~/dots/scripts/spotify.py -f '{artist}: {song}' -t 50
|
||||
|
||||
click-left = playerctl play-pause
|
||||
click-right = playerctl next
|
||||
click-middle = playerctl previous
|
||||
click-left = playerctl -p spotify play-pause
|
||||
click-right = playerctl -p spotify next
|
||||
click-middle = playerctl -p spotify previous
|
||||
|
||||
[module/sep]
|
||||
type = custom/text
|
||||
content = "|"
|
||||
content-foreground = ${colors.grey}
|
||||
|
||||
[module/temp]
|
||||
type = internal/temperature
|
||||
interval = 5
|
||||
format = <label>
|
||||
|
||||
[module/cpu_temp]
|
||||
type = internal/temperature
|
||||
interval = 5
|
||||
# 0 is acpi next to cpu
|
||||
# 10 is inside the cpu
|
||||
thermal-zone = 10
|
||||
format = <label>
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 5
|
||||
label = %percentage%%
|
||||
format = <label>
|
||||
|
||||
[module/ram]
|
||||
type = internal/memory
|
||||
interval = 5
|
||||
label = %gb_used%
|
||||
format = <label>
|
||||
|
||||
10
files/.config/rofi/colors.rasi
Normal file
10
files/.config/rofi/colors.rasi
Normal file
@@ -0,0 +1,10 @@
|
||||
* {
|
||||
background: #eeeeee;
|
||||
background-alt: #eeeeee;
|
||||
foreground: #000000;
|
||||
accent: #A6CC70;
|
||||
border: #eeeeee;
|
||||
border-alt: #eeeeee;
|
||||
selected: @accent;
|
||||
urgent: #ff3333;
|
||||
}
|
||||
32
files/.config/rofi/confirm.rasi
Normal file
32
files/.config/rofi/confirm.rasi
Normal file
@@ -0,0 +1,32 @@
|
||||
/* Confirm Dialog */
|
||||
|
||||
colors {
|
||||
background: #425775ff;
|
||||
background-alt: #475C7Bff;
|
||||
foreground: #ffffffcc;
|
||||
border: #FDBB6Dff;
|
||||
border-alt: #DA717Fff;
|
||||
selected: #685E79ff;
|
||||
urgent: #DA4453FF;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
font: "JuliaMono 11";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 225px;
|
||||
padding: 25px;
|
||||
border: 1px;
|
||||
border-radius: 0px;
|
||||
border-color: @border;
|
||||
location: center;
|
||||
y-offset: -2em;
|
||||
}
|
||||
|
||||
entry {
|
||||
expand: true;
|
||||
text-color: @border;
|
||||
}
|
||||
@@ -11,23 +11,15 @@ configuration {
|
||||
|
||||
}
|
||||
|
||||
// blur version
|
||||
* {
|
||||
bg: #ffffff;
|
||||
ac: #A6CC70;
|
||||
}
|
||||
@import "~/.config/rofi/colors.rasi"
|
||||
|
||||
* {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
font: "JuliaMono 18";
|
||||
font: "JuliaMono 18";
|
||||
}
|
||||
|
||||
|
||||
|
||||
window {
|
||||
background-color: @bg;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background-color: @background;
|
||||
padding: 30;
|
||||
width: 30%;
|
||||
height: 45%;
|
||||
@@ -41,8 +33,8 @@ mainbox {
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 2;
|
||||
lines: 3;
|
||||
columns: 3;
|
||||
lines: 1;
|
||||
padding: 8;
|
||||
spacing: 0;
|
||||
cycle: false;
|
||||
@@ -58,14 +50,14 @@ element {
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @ac;
|
||||
background-color: @accent;
|
||||
border-color: #ffffff0A;
|
||||
text-color: #000000;
|
||||
text-color: @foreground;
|
||||
transition: 20;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 100;
|
||||
size: 4%;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
@@ -78,7 +70,6 @@ element-text {
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
padding: 4 8 4 8;
|
||||
background-color: #ffffff00;
|
||||
}
|
||||
|
||||
@@ -89,8 +80,9 @@ prompt {
|
||||
}
|
||||
|
||||
entry {
|
||||
text-color: @txt;
|
||||
padding: 8 12 8 12;
|
||||
font: "JuliaMono 20";
|
||||
margin: 0% 0% 0% 0%;
|
||||
placeholder: "Search";
|
||||
placeholder-color: #444444;
|
||||
}
|
||||
|
||||
32
files/.config/rofi/message.rasi
Normal file
32
files/.config/rofi/message.rasi
Normal file
@@ -0,0 +1,32 @@
|
||||
/* Message Dialog */
|
||||
|
||||
colors {
|
||||
background: #425775ff;
|
||||
background-alt: #475C7Bff;
|
||||
foreground: #ffffffcc;
|
||||
border: #FDBB6Dff;
|
||||
border-alt: #DA717Fff;
|
||||
selected: #685E79ff;
|
||||
urgent: #DA4453FF;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
font: "FantasqueSansMono Nerd Font 12";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 360px;
|
||||
padding: 25px;
|
||||
border: 1px;
|
||||
border-radius: 0px;
|
||||
border-color: @border;
|
||||
location: center;
|
||||
y-offset: -2em;
|
||||
}
|
||||
|
||||
entry {
|
||||
expand: true;
|
||||
text-color: @border;
|
||||
}
|
||||
112
files/.config/rofi/powermenu.rasi
Normal file
112
files/.config/rofi/powermenu.rasi
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
configuration {
|
||||
font: "JuliaMono 18";
|
||||
show-icons: false;
|
||||
icon-theme: "Papirus";
|
||||
drun-display-format: "{name}";
|
||||
disable-history: false;
|
||||
sidebar-mode: false;
|
||||
}
|
||||
|
||||
@import "~/.config/rofi/colors.rasi"
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
border-radius: 0px;
|
||||
height: 28%;
|
||||
width: 15%;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 0.5% 0.5% 0.5% 0%;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: "Powermenu";
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
padding: 0.5% 0.5% 0.5% 0%;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ textbox-prompt-colon, prompt ];
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
expand: false;
|
||||
border: 0% 0% 0% 0.2%;
|
||||
border-radius: 0% 0% 0% 0%;
|
||||
border-color: @border;
|
||||
padding: 0.5%;
|
||||
position: center;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: @background;
|
||||
margin: 0% 0% 0% 0%;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @background;
|
||||
children: [ inputbar, listview ];
|
||||
padding: 1% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
orientation: vertical;
|
||||
border-radius: 0%;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: #00000000;
|
||||
text-color: inherit;
|
||||
expand: true;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
margin: 1% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element normal.urgent,
|
||||
element alternate.urgent {
|
||||
background-color: @urgent;
|
||||
text-color: @foreground;
|
||||
border-radius: 0.2%;
|
||||
}
|
||||
|
||||
element normal.active,
|
||||
element alternate.active {
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected;
|
||||
text-color: @foreground;
|
||||
border: 0% 0% 0% 0.2%;
|
||||
border-radius: 0%;
|
||||
border-color: @border;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @urgent;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
}
|
||||
Reference in New Issue
Block a user