1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
juan
24e2673bdf
Feat | Add everforest and toggle light/dark 2022-09-04 17:17:37 +08:00
juan
d4468e9b78
Feat | Update sway keybinds 2022-08-28 14:00:34 +08:00
19 changed files with 270 additions and 138 deletions

View File

@ -24,6 +24,8 @@ dynamic_background_opacity yes
allow_hyperlinks ask
allow_remote_control yes
map kitty_mod+n new_os_window_with_cwd
include themes/serenade.conf
include themes/light.conf

View File

@ -0,0 +1,9 @@
# Open any image in the full kitty window by clicking on it
protocol file
mime image/*
action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH}
# Open directories
protocol file
mime inode/directory
action launch --type=os-window --cwd $FILE_PATH

View File

@ -1,3 +1,5 @@
# serenade
foreground #bfddb2
background #2A2f33
selection_foreground #bfddb2

View File

@ -1,39 +0,0 @@
foreground #d8cacc
background #323d43
selection_foreground #3c474d
selection_background #525c62
url_color #415c6d
cursor #7fbbb3
# black
color0 #4a555b
color8 #525c62
# red
color1 #e68183
color9 #e68183
# green
color2 #a7c080
color10 #a7c080
# yellow
color3 #dbbc7f
color11 #dbbc7f
# blue
color4 #7fbbb3
color12 #7fbbb3
# magenta
color5 #d699b6
color13 #d699b6
# cyan
color6 #83c092
color14 #83c092
# white
color7 #d8caac
color15 #d8caac

View File

@ -1,46 +0,0 @@
background #161821
foreground #c6c8d1
selection_background #1e2132
selection_foreground #c6c8d1
cursor #d2d4de
# black
color0 #161821
color8 #6b7089
# red
color1 #e27878
color9 #e98989
# green
color2 #b4be82
color10 #c0ca8e
# yellow/orange
color3 #e2a478
color11 #e9b189
# blue
color4 #84a0c6
color12 #91acd1
# magenta/purple
color5 #a093c7
color13 #ada0d3
# cyan
color6 #89b8c2
color14 #95c4ce
# white
color7 #c6c8d1
color15 #d2d4de
# tab bar
active_tab_foreground #161821
active_tab_background #84a0c6
inactive_tab_foreground #d2d4de
inactive_tab_background #353a50
tab_bar_background #0f1117

View File

@ -0,0 +1,39 @@
# everforest light
foreground #323d43
background #fdf6e3
selection_foreground #e4e1cd
selection_background #d3dbc8
url_color #415c6d
cursor #7fbbb3
# black
color0 #3c474d
color8 #5f6d67
# red
color1 #f85552
color9 #e68183
# green
color2 #8da101
color10 #a7c080
# yellow
color3 #dfa000
color11 #dbbc7f
# blue
color4 #3a94c5
color12 #7fbbb3
# magenta
color5 #df69ba
color13 #d699b6
# cyan
color6 #93b259
color14 #83c092
# white
color7 #f3efda
color15 #e1ddc9

View File

@ -1,43 +0,0 @@
# Nord Colorscheme for Kitty
# Based on:
# - https://gist.github.com/marcusramberg/64010234c95a93d953e8c79fdaf94192
# - https://github.com/arcticicestudio/nord-hyper
foreground #D8DEE9
background #2E3440
selection_foreground #000000
selection_background #FFFACD
url_color #0087BD
cursor #81A1C1
# black
color0 #3B4252
color8 #4C566A
# red
color1 #BF616A
color9 #BF616A
# green
color2 #A3BE8C
color10 #A3BE8C
# yellow
color3 #EBCB8B
color11 #EBCB8B
# blue
color4 #81A1C1
color12 #81A1C1
# magenta
color5 #B48EAD
color13 #B48EAD
# cyan
color6 #88C0D0
color14 #8FBCBB
# white
color7 #E5E9F0
color15 #ECEFF4

View File

@ -0,0 +1,130 @@
# Favorite characters for unicode input
# Enter the hex code for each favorite character on a new line. Blank lines are
# ignored and anything after a # is considered a comment.
2018 # Left single quotation mark
2019 # Right single quotation mark
201c # “ Left double quotation mark
201d # ” Right double quotation mark
2039 # Single left-pointing angle quotation mark
203a # Single right-pointing angle quotation mark
ab # « Left-pointing double angle quotation mark
bb # » Right-pointing double angle quotation mark
201a # Single low-9 quotation mark
201e # „ Double low-9 quotation mark
1f600 # 😀 Grinning face
1f61b # 😛 Face with stuck-out tongue
1f607 # 😇 Smiling face with halo
1f608 # 😈 Smiling face with horns
1f609 # 😉 Winking face
1f60d # 😍 Smiling face with heart-shaped eyes
1f60e # 😎 Smiling face with sunglasses
1f62e # 😮 Face with open mouth
1f44d # 👍 Thumbs up sign
1f44e # 👎 Thumbs down sign
2014 # — Em dash
2013 # En dash
a7 # § Section sign
b6 # ¶ Pilcrow sign
2020 # † Dagger
2021 # ‡ Double dagger
a9 # © Copyright sign
ae # ® Registered sign
2122 # ™ Trade mark sign
2192 # → Rightwards arrow
21d2 # ⇒ Rightwards double arrow
2022 # • Bullet
b7 # · Middle dot
b0 # ° Degree sign
b1 # ± Plus-minus sign
2212 # Minus sign
d7 # × Multiplication sign
f7 # ÷ Division sign
bc # ¼ Vulgar fraction one quarter
bd # ½ Vulgar fraction one half
bd # ½ Vulgar fraction one half
be # ¾ Vulgar fraction three quarters
2026 # … Horizontal ellipsis
b5 # µ Micro sign
a2 # ¢ Cent sign
a3 # £ Pound sign
20ac # € Euro sign
bf # ¿ Inverted question mark
a1 # ¡ Inverted exclamation mark
a8 # ¨ Diaeresis
b4 # ´ Acute accent
b8 # ¸ Cedilla
2c6 # ˆ Modifier letter circumflex accent
2dc # ˜ Small tilde
c0 # À Latin capital letter a with grave
c1 # Á Latin capital letter a with acute
c2 # Â Latin capital letter a with circumflex
c3 # Ã Latin capital letter a with tilde
c4 # Ä Latin capital letter a with diaeresis
c5 # Å Latin capital letter a with ring above
c6 # Æ Latin capital letter ae
c7 # Ç Latin capital letter c with cedilla
c8 # È Latin capital letter e with grave
c9 # É Latin capital letter e with acute
ca # Ê Latin capital letter e with circumflex
cb # Ë Latin capital letter e with diaeresis
cc # Ì Latin capital letter i with grave
cd # Í Latin capital letter i with acute
ce # Î Latin capital letter i with circumflex
cf # Ï Latin capital letter i with diaeresis
d0 # Ð Latin capital letter eth
d1 # Ñ Latin capital letter n with tilde
d2 # Ò Latin capital letter o with grave
d3 # Ó Latin capital letter o with acute
d4 # Ô Latin capital letter o with circumflex
d5 # Õ Latin capital letter o with tilde
d6 # Ö Latin capital letter o with diaeresis
d8 # Ø Latin capital letter o with stroke
152 # Œ Latin capital ligature oe
160 # Š Latin capital letter s with caron
d9 # Ù Latin capital letter u with grave
da # Ú Latin capital letter u with acute
db # Û Latin capital letter u with circumflex
dc # Ü Latin capital letter u with diaeresis
dd # Ý Latin capital letter y with acute
178 # Ÿ Latin capital letter y with diaeresis
de # Þ Latin capital letter thorn
df # ß Latin small letter sharp s
e0 # à Latin small letter a with grave
e1 # á Latin small letter a with acute
e2 # â Latin small letter a with circumflex
e3 # ã Latin small letter a with tilde
e4 # ä Latin small letter a with diaeresis
e5 # å Latin small letter a with ring above
e6 # æ Latin small letter ae
e7 # ç Latin small letter c with cedilla
e8 # è Latin small letter e with grave
e9 # é Latin small letter e with acute
ea # ê Latin small letter e with circumflex
eb # ë Latin small letter e with diaeresis
ec # ì Latin small letter i with grave
ed # í Latin small letter i with acute
ee # î Latin small letter i with circumflex
ef # ï Latin small letter i with diaeresis
f0 # ð Latin small letter eth
f1 # ñ Latin small letter n with tilde
f2 # ò Latin small letter o with grave
f3 # ó Latin small letter o with acute
f4 # ô Latin small letter o with circumflex
f5 # õ Latin small letter o with tilde
f6 # ö Latin small letter o with diaeresis
f8 # ø Latin small letter o with stroke
153 # œ Latin small ligature oe
161 # š Latin small letter s with caron
f9 # ù Latin small letter u with grave
fa # ú Latin small letter u with acute
fb # û Latin small letter u with circumflex
fc # ü Latin small letter u with diaeresis
fd # ý Latin small letter y with acute
ff # ÿ Latin small letter y with diaeresis
fe # þ Latin small letter thorn
aa # ª Feminine ordinal indicator
ba # º Masculine ordinal indicator
3b1 # α Greek small letter alpha
3a9 # Ω Greek capital letter omega
221e # ∞ Infinity

View File

@ -1,7 +1,7 @@
# vim: filetype=i3config
# wallpaper
output * bg $(find ~/Pictures/Wallpapers/ -type f | shuf -n1) fill
output * bg $(find ~/Pictures/Wallpapers/light -type f | shuf -n1) fill
# laptop output mode
set $laptop eDP-1
@ -11,9 +11,6 @@ bindswitch --reload --locked lid:off output $laptop enable
# bar
bar swaybar_command waybar
#borders stuff
default_border pixel 1
#workspace_auto_back_and_forth yes
force_display_urgency_hint 500 ms
smart_borders no_gaps

View File

@ -10,9 +10,17 @@ set $menu wofi | xargs swaymsg exec --
#my keybinds
# screenshot
bindsym $mod+Print exec ~/.config/sway/scripts/grimshot-ui.sh
bindsym $mod+Ctrl+s exec ~/.config/sway/scripts/grimshot-ui.sh
# notification client
bindsym $mod+m exec swaync-client -t -sw
# Logout
bindsym $mod+Ctrl+l exec ~/.config/sway/scripts/logout.sh
# Change fcitx IME
bindsym $mod+Ctrl+space exec fcitx5-remote -t
# Change theme
bindsym $mod+Ctrl+t exec ~/.config/sway/scripts/themes.sh
#bind fn keys
bindsym XF86AudioMicMute exec amixer set Capture toggle
@ -46,8 +54,6 @@ floating_modifier $mod normal
bindsym $mod+Ctrl+r reload
bindsym $mod+Ctrl+q exit
# Change fcitx IME
bindsym $mod+Ctrl+space exec fcitx5-remote -t
# Move your focus around
bindsym $mod+$left focus left

View File

@ -0,0 +1,3 @@
# vim: filetype=i3config
include ~/.config/sway/config.d/themes/light

View File

@ -18,3 +18,6 @@ client.unfocused #3f464b #2a2f33 #bfddb2 #415c6d #3f464b
client.urgent #d76e6e #2a2f33 #bfddb2 #415c6d #e68183
client.placeholder #3f464b #2a2f33 #bfddb2 #415c6d #3f464b
client.background #3f464b #2a2f33
#borders stuff
default_border pixel 1

View File

@ -0,0 +1,23 @@
# vim: filetype=i3config
#set gtk theme and font
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Adwaita'
gsettings set $gnome-schema icon-theme 'Papirus-Dark'
gsettings set $gnome-schema cursor-theme 'Adwaita'
gsettings set $gnome-schema font-name 'ibm-plex 12'
gsettings set org.gtk.Settings.FileChooser startup-mode cwd
}
#set colour
#color class border backgr. text indicator child_border
client.focused #415c6d #323d43 #fdf6e3 #415c6d #415c6d
client.focused_inactive #e4e1cd #323d43 #fdf6e3 #415c6d #e4e1cd
client.unfocused #e4e1cd #323d43 #fdf6e3 #415c6d #e4e1cd
client.urgent #e68183 #323d43 #fdf6e3 #415c6d #e68183
client.placeholder #e4e1cd #323d43 #fdf6e3 #415c6d #e4e1cd
client.background #e4e1cd #323d43
#borders stuff
default_border pixel 1

26
.config/sway/scripts/themes.sh Executable file
View File

@ -0,0 +1,26 @@
scheme=$(echo "light\ndark" | wofi -d -p "Select color scheme")
# simply subsitude dark and light
if [ $scheme = "light" ]; then
notify-send "Toggling light color scheme"
command="s/dark/light/"
elif [ $scheme = "dark" ]; then
notify-send "Toggling dark color scheme"
command="s/light/dark/"
else
exit 1
fi
sed -i $command ~/.config/sway/config.d/theme
sed -i $command ~/.config/sway/config.d/display
sed -i $command ~/.config/waybar/style.css
sed -i $command ~/.config/kitty/kitty.conf
# more settings
if [ $scheme = "light" ]; then
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf"
else
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf"
fi
sway reload

20
.config/waybar/light.less Normal file
View File

@ -0,0 +1,20 @@
@define-color background #fdf6e3;
@define-color selection_background #4a555b;
@define-color foreground #323d43;
@define-color blue #3a94c5;
@define-color cyan #35a77c;
@define-color green #8da101;
@define-color magenta #df69ba;
@define-color red #f85552;
@define-color white #efead4;
@define-color yellow #dfa000;
@define-color background_b #525c62;
@define-color blue_b #7fbbb3;
@define-color cyan_b #83c092;
@define-color green_b #a7c080;
@define-color magenta_b #d699b6;
@define-color orange_b #e5a46b;
@define-color red_b #e68183;
@define-color white_b #d8caac;
@define-color yellow_b #dbbc7f;

View File

@ -5,12 +5,12 @@
* {
border: none;
border-radius: 1px;
font-family: 'IBM Plex Sans', sans-serif;
font-family: "IBM Plex Sans", sans-serif;
font-size: 13px;
min-height: 0;
}
@import "serenade.less";
@import "light.less";
window#waybar {
background: @background;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB