1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-25 12:21:50 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan
e7bc1ebc33 Better theme switching script 2024-01-12 11:08:27 +08:00
Ryan
c46f18d7cd qt5ct update 2024-01-12 09:23:49 +08:00
13 changed files with 127 additions and 93 deletions

View File

@ -1,3 +1,16 @@
gtk-icon-theme-name = "Adwaita" include "/home/ryan/.gtkrc-2.0.mine"
gtk-theme-name = "Adwaita-dark" gtk-theme-name="Adwaita"
gtk-font-name = "IBM Plex 12" gtk-icon-theme-name="Adwaita"
gtk-font-name="ibm-plex 12"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintmedium"
gtk-xft-rgba="rgb"

View File

@ -1,3 +1,17 @@
gtk-icon-theme-name = "Adwaita"
gtk-theme-name = "Adwaita" include "/home/ryan/.gtkrc-2.0.mine"
gtk-font-name = "IBM Plex 12" gtk-theme-name="Adwaita"
gtk-icon-theme-name="Adwaita"
gtk-font-name="ibm-plex 12"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintmedium"
gtk-xft-rgba="rgb"

17
.config/gtk-3.0/dark.ini Normal file
View File

@ -0,0 +1,17 @@
[Settings]
gtk-theme-name=Adwaita
gtk-icon-theme-name=Adwaita
gtk-font-name=ibm-plex 12
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintmedium
gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=1

17
.config/gtk-3.0/light.ini Normal file
View File

@ -0,0 +1,17 @@
[Settings]
gtk-theme-name=Adwaita
gtk-icon-theme-name=Adwaita
gtk-font-name=ibm-plex 12
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintmedium
gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=0

View File

@ -1,17 +1,17 @@
[Appearance] [Appearance]
color_scheme_path=/usr/share/qt5ct/colors/airy.conf color_scheme_path=/usr/share/qt5ct/colors/airy.conf
custom_palette=false custom_palette=false
icon_theme=Papirus-Dark icon_theme=Adwaita
standard_dialogs=gtk3 standard_dialogs=gtk3
style=Adwaita-Dark style=Adwaita-Dark
[Fonts] [Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x1a\0I\0\x42\0M\0 \0P\0l\0\x65\0x\0 \0M\0o\0n\0o@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) fixed="IBM Plex Mono,12,-1,5,50,0,0,0,0,0"
general=@Variant(\0\0\0@\0\0\0\x1a\0I\0\x42\0M\0 \0P\0l\0\x65\0x\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) general="IBM Plex Sans,12,-1,5,50,0,0,0,0,0"
[Interface] [Interface]
activate_item_on_single_click=1 activate_item_on_single_click=1
buttonbox_layout=2 buttonbox_layout=3
cursor_flash_time=1000 cursor_flash_time=1000
dialog_buttons_have_icons=2 dialog_buttons_have_icons=2
double_click_interval=400 double_click_interval=400
@ -25,4 +25,4 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 \0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 \0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 ) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\x1\xf4\0\0\t\xff\0\0\av\0\0\0\0\0\0\x1\xf4\0\0\x4\xfd\0\0\b\x14\0\0\0\0\x2\0\0\0\n\0\0\0\0\0\0\0\x1\xf4\0\0\t\xff\0\0\av)

View File

@ -1,17 +1,17 @@
[Appearance] [Appearance]
color_scheme_path=/usr/share/qt5ct/colors/airy.conf color_scheme_path=/usr/share/qt5ct/colors/airy.conf
custom_palette=false custom_palette=false
icon_theme=Papirus icon_theme=Adwaita
standard_dialogs=gtk3 standard_dialogs=gtk3
style=Adwaita style=Adwaita
[Fonts] [Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x1a\0I\0\x42\0M\0 \0P\0l\0\x65\0x\0 \0M\0o\0n\0o@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) fixed="IBM Plex Mono,12,-1,5,50,0,0,0,0,0"
general=@Variant(\0\0\0@\0\0\0\x1a\0I\0\x42\0M\0 \0P\0l\0\x65\0x\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) general="IBM Plex Sans,12,-1,5,50,0,0,0,0,0"
[Interface] [Interface]
activate_item_on_single_click=1 activate_item_on_single_click=1
buttonbox_layout=2 buttonbox_layout=3
cursor_flash_time=1000 cursor_flash_time=1000
dialog_buttons_have_icons=2 dialog_buttons_have_icons=2
double_click_interval=400 double_click_interval=400
@ -25,4 +25,4 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\"\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\"\0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\") geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\x1\xf4\0\0\t\xff\0\0\av\0\0\0\0\0\0\x1\xf4\0\0\x4\xfd\0\0\b\x14\0\0\0\0\x2\0\0\0\n\0\0\0\0\0\0\0\x1\xf4\0\0\t\xff\0\0\av)

View File

@ -1,32 +0,0 @@
[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
custom_palette=false
icon_theme=Papirus-Dark
standard_dialogs=gtk3
style=Adwaita-Dark
[Fonts]
fixed="IBM Plex Mono,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
general="IBM Plex Sans,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=2
cursor_flash_time=1000
dialog_buttons_have_icons=2
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 \0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 \0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\x4\xfd\0\0\x6 )
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()

View File

@ -1,32 +0,0 @@
[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
custom_palette=false
icon_theme=Papirus
standard_dialogs=gtk3
style=Adwaita
[Fonts]
fixed="IBM Plex Mono,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
general="IBM Plex Sans,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=2
cursor_flash_time=1000
dialog_buttons_have_icons=2
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\"\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\"\0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\t\xff\0\0\x6\")
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()

View File

@ -15,7 +15,7 @@ choice=$(printf "%s\n" "${choices[@]}" | wofi -d --prompt "󰚥 Choose power opt
if test "$choice" = lock ; then if test "$choice" = lock ; then
# sleep less when power on # sleep less when power on
if acpi -a | grep -q on; then if acpi -a | grep -q on; then
sleep_time=3600 sleep_time=3600000
else else
sleep_time=10 sleep_time=10
fi fi

View File

@ -23,28 +23,26 @@ if [ $scheme = "light" ]; then
# kitty config # kitty config
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" & kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" &
# zathura # zathura
mv ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc cp ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc
# qt5ct and qt6ct # qt5ct and qt6ct
cp ~/.config/qt5ct/light.conf ~/.config/qt5ct/qt5ct.conf cp ~/.config/qt5ct/light.conf ~/.config/qt5ct/qt5ct.conf
cp ~/.config/qt6ct/light.conf ~/.config/qt6ct/qt6ct.conf cp ~/.config/qt6ct/light.conf ~/.config/qt6ct/qt6ct.conf
# gtk2 # gtk2
cp ~/.config/gtk-2.0/light.conf ~/.gtkrc-2.0 cp ~/.config/gtk-2.0/light.conf ~/.gtkrc-2.0
# set wallpaper location # gtk3
# unlink ~/.config/sway/Wallpaper cp ~/.config/gtk-3.0/light.ini ~/.config/gtk-3.0/settings.ini
# ln -s ~/Pictures/wall/sway/light ~/.config/sway/Wallpaper
else else
# kitty config # kitty config
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" & kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" &
# zathura # zathura
mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc cp ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
# qt5ct and qt6ct # qt5ct and qt6ct
cp ~/.config/qt5ct/dark.conf ~/.config/qt5ct/qt5ct.conf cp ~/.config/qt5ct/dark.conf ~/.config/qt5ct/qt5ct.conf
cp ~/.config/qt6ct/dark.conf ~/.config/qt6ct/qt6ct.conf cp ~/.config/qt6ct/dark.conf ~/.config/qt6ct/qt6ct.conf
# gtk2 # gtk2
cp ~/.config/gtk-2.0/dark.conf ~/.gtkrc-2.0 cp ~/.config/gtk-2.0/dark.conf ~/.gtkrc-2.0
# set dark wallpaper # gtk3
# unlink ~/.config/sway/Wallpaper cp ~/.config/gtk-3.0/dark.ini ~/.config/gtk-3.0/settings.ini
# ln -s ~/Pictures/wall/sway/dark ~/.config/sway/Wallpaper
fi fi
swaymsg reload swaymsg reload

View File

@ -0,0 +1,40 @@
set notification-error-bg "#282828" # bg
set notification-error-fg "#fb4934" # bright:red
set notification-warning-bg "#282828" # bg
set notification-warning-fg "#fabd2f" # bright:yellow
set notification-bg "#282828" # bg
set notification-fg "#b8bb26" # bright:green
set completion-bg "#504945" # bg2
set completion-fg "#ebdbb2" # fg
set completion-group-bg "#3c3836" # bg1
set completion-group-fg "#928374" # gray
set completion-highlight-bg "#83a598" # bright:blue
set completion-highlight-fg "#504945" # bg2
# Define the color in index mode
set index-bg "#504945" # bg2
set index-fg "#ebdbb2" # fg
set index-active-bg "#83a598" # bright:blue
set index-active-fg "#504945" # bg2
set inputbar-bg "#282828" # bg
set inputbar-fg "#ebdbb2" # fg
set statusbar-bg "#504945" # bg2
set statusbar-fg "#ebdbb2" # fg
set highlight-color "#fabd2f" # bright:yellow
set highlight-active-color "#fe8019" # bright:orange
set default-bg "#282828" # bg
set default-fg "#ebdbb2" # fg
set render-loading true
set render-loading-bg "#282828" # bg
set render-loading-fg "#ebdbb2" # fg
# Recolor book content's color
set recolor-lightcolor "#282828" # bg
set recolor-darkcolor "#ebdbb2" # fg
set recolor "true"
# set recolor-keephue true # keep original color

5
.zshrc
View File

@ -42,9 +42,8 @@ if ! command -v bat &> /dev/null ; then
zinit light sharkdp/bat zinit light sharkdp/bat
fi fi
zinit from"gh-r" as"program" mv"direnv* -> direnv" \ zinit as"program" make'!' atclone'./direnv hook zsh > zhook.zsh' \
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \ atpull'%atclone' pick"direnv" src"zhook.zsh" for \
pick"direnv" src="zhook.zsh" for \
direnv/direnv direnv/direnv
autoload -Uz _zinit autoload -Uz _zinit