1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 10:51:49 +08:00

Update conf for fedora

This commit is contained in:
Ryan 2023-07-16 09:49:32 +08:00
parent c72cb6d4eb
commit b69a911cb1
Signed by: juan
GPG Key ID: 807ECD28A698D245
18 changed files with 56 additions and 87 deletions

View File

@ -6,7 +6,7 @@ bold_italic_font IBM Plex Mono SemiBold Italic
font_size 13.5 font_size 13.5
symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B Symbols-2048-em Nerd Font Complete symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B Symbols Nerd Font Mono
# shell stuff # shell stuff
shell_integration enabled shell_integration enabled

View File

@ -1,5 +1,5 @@
include ~/.config/sway/config.d/exec include ~/.config/sway/config.d/custom
include ~/.config/sway/config.d/display include ~/.config/sway/config.d/display
include ~/.config/sway/config.d/exec
include ~/.config/sway/config.d/theme include ~/.config/sway/config.d/theme
include ~/.config/sway/config.d/keybinds include ~/.config/sway/config.d/keybinds
include ~/.config/sway/config.d/custom

View File

@ -1,3 +1,3 @@
# vim: filetype=i3config # vim: filetype=swayconfig
include ~/.config/sway/config.d/custom.d/* include ~/.config/sway/config.d/custom.d/*

View File

@ -1,36 +0,0 @@
# vim: filetype=i3config
# swap caps and ctrl on Thinkpad keyboard
input 1:1:AT_Translated_Set_2_keyboard {
xkb_options "ctrl:swapcaps"
}
# dugod keyboard and 2.4G variant
input 12136:130:Hoksi_Technology_DURGOD_Taurus_K320 {
# swap caps with ctrl, and lalt with lwin
xkb_options "ctrl:swapcaps, altwin:swap_lalt_lwin"
}
input 12136:32832:Hoksi_Technology_DURGOD_Infinite_Link {
xkb_options "ctrl:swapcaps, altwin:swap_lalt_lwin"
}
input type:mouse {
accel_profile flat
}
# always disable touchpad
input type:touchpad {
events disabled
# accel_profile adaptive
# pointer_accel -0.3
# natural_scroll enabled
# tap enabled
# dwt enabled
# events disabled_on_external_mouse
}
input 2:14:ETPS/2_Elantech_TrackPoint {
accel_profile adaptive
pointer_accel 0
}

View File

@ -1,8 +0,0 @@
output DP-2 mode 2560x1440@74.968Hz
output DP-2 subpixel rgb
output * adaptive_sync on
output eDP-1 subpixel rgb
# TV at home
output 'Unknown HUAWEI INC 0x00000000' mode 3840x2160@60.000Hz
output 'Unknown HUAWEI INC 0x00000000' scale 2

View File

@ -1,4 +1,4 @@
# vim: filetype=i3config # vim: filetype=swayconfig
# laptop output mode # laptop output mode
set $laptop eDP-1 set $laptop eDP-1
@ -11,3 +11,7 @@ bar swaybar_command waybar
#workspace_auto_back_and_forth yes #workspace_auto_back_and_forth yes
force_display_urgency_hint 500 ms force_display_urgency_hint 500 ms
smart_borders no_gaps smart_borders no_gaps
# Use static wallpaper
output * bg $(find -L ~/.config/sway/Wallpaper/ -type f | shuf -n1) fill

View File

@ -1,11 +1,11 @@
# vim: filetype=i3config # vim: filetype=swayconfig
##starting userspace software ##starting userspace software
exec_always sh -c ~/.config/sway/scripts/update-wallpaper.sh # exec_always sh -c ~/.config/sway/scripts/update-wallpaper.sh
exec mkfifo /tmp/kitty exec mkfifo /tmp/kitty
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500 exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
exec light -S 70 exec light -S 70
exec gentoo-pipewire-launcher # exec gentoo-pipewire-launcher
exec swaync exec swaync
exec playerctld daemon exec playerctld daemon
exec dbus-update-activation-environment --all # exec dbus-update-activation-environment --all

View File

@ -1,4 +1,4 @@
# vim: filetype=i3config # vim: filetype=swayconfig
set $mod Mod4 set $mod Mod4
set $left h set $left h
@ -12,7 +12,7 @@ set $menu wofi | xargs swaymsg exec --
# screenshot # screenshot
bindsym $mod+Print exec ~/.config/sway/scripts/grimshot-ui.sh bindsym $mod+Print exec ~/.config/sway/scripts/grimshot-ui.sh
bindsym $mod+Ctrl+s exec ~/.config/sway/scripts/grimshot-ui.sh bindsym $mod+Shift+s exec ~/.config/sway/scripts/grimshot-ui.sh
# notification client # notification client
bindsym $mod+m exec swaync-client -t -sw bindsym $mod+m exec swaync-client -t -sw
# Logout # Logout
@ -41,6 +41,8 @@ bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pa
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/sway/scripts/getmute.sh > $SWAYSOCK.wob bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/sway/scripts/getmute.sh > $SWAYSOCK.wob
bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86KbdBrightnessUp exec light -s sysfs/leds/asus::kbd_backlight -S 67
bindsym XF86KbdBrightnessDown exec light -s sysfs/leds/asus::kbd_backlight -S 0
bindsym XF86AudioPause exec 'playerctl pause' bindsym XF86AudioPause exec 'playerctl pause'
bindsym XF86AudioPlay exec 'playerctl play' bindsym XF86AudioPlay exec 'playerctl play'
@ -49,7 +51,7 @@ bindsym XF86AudioNext exec 'playerctl next'
bindsym XF86AudioPrev exec 'playerctl previous' bindsym XF86AudioPrev exec 'playerctl previous'
# sticky window # sticky window
bindsym $mod+Shift+s floating toggle ; sticky toggle ; resize set 800 600 ; move position 55ppt 5ppt bindsym $mod+Ctrl+s floating toggle ; sticky toggle ; resize set 800 600 ; move position 55ppt 5ppt
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term

View File

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

View File

@ -1,8 +1,9 @@
# vim: filetype=i3config # vim: filetype=swayconfig
#set gtk theme and font #set gtk theme and font
set $gnome-schema org.gnome.desktop.interface set $gnome-schema org.gnome.desktop.interface
exec_always { exec_always {
gsettings set $gnome-schema color-scheme 'prefer-dark'
gsettings set $gnome-schema gtk-theme 'Adwaita-dark' gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
gsettings set $gnome-schema icon-theme 'Papirus-Dark' gsettings set $gnome-schema icon-theme 'Papirus-Dark'
gsettings set $gnome-schema cursor-theme 'Adwaita' gsettings set $gnome-schema cursor-theme 'Adwaita'

View File

@ -1,8 +1,9 @@
# vim: filetype=i3config # vim: filetype=swayconfig
#set gtk theme and font #set gtk theme and font
set $gnome-schema org.gnome.desktop.interface set $gnome-schema org.gnome.desktop.interface
exec_always { exec_always {
gsettings set $gnome-schema color-scheme 'prefer-light'
gsettings set $gnome-schema gtk-theme 'Adwaita' gsettings set $gnome-schema gtk-theme 'Adwaita'
gsettings set $gnome-schema icon-theme 'Papirus-Light' gsettings set $gnome-schema icon-theme 'Papirus-Light'
gsettings set $gnome-schema cursor-theme 'Adwaita' gsettings set $gnome-schema cursor-theme 'Adwaita'

View File

@ -1,22 +1,22 @@
#!/bin/sh #!/bin/sh
SCRIPT_LOC=~/.config/sway/scripts/ SCRIPT_LOC=~/.config/sway/scripts/
FILE="/tmp/share/screenshots/`date +'%y%m%d%H%M.png'`" FOLDER=~/Pictures/Screenshots/
# FILE="/tmp/share/screenshots/`date +'%y%m%d%H%M.png'`"
FILE="$FOLDER`date +'%y%m%d%H%M.png'`"
action=`echo "copy\nsave" | wofi -d -Oalphabetical --prompt="Select your action"` action=`echo -e "copy\nsave" | wofi -d -Oalphabetical --prompt="Select your action"`
target=`echo "active\nscreen\noutput\narea\nwindow" | wofi -d -Oalphabetical --prompt="Select the target"` target=`echo -e "active\nscreen\noutput\narea\nwindow" | wofi -d -Oalphabetical --prompt="Select the target"`
test $action || exit test $action || exit
test $target || exit test $target || exit
test -d /tmp/share/screenshot || mkdir -p /tmp/share/screenshots # test -d /tmp/share/screenshot || mkdir -p /tmp/share/screenshots
# TODO, add box shadows ~/.config/sway/scripts/grimshot.sh --notify $action $target $FILE
XDG_SCREENSHOTS_DIR=/tmp/share/screenshots ~/.config/sway/scripts/grimshot.sh --notify $action $target $FILE
if [ $target = "active" ] || [ $target = "window" ] || [ $target = "area" ] if [ $target = "active" ] || [ $target = "window" ] || [ $target = "area" ]
then then
$SCRIPT_LOC/boxshadow.sh "$FILE" "$FILE" || die "Unable to save screenshot" $SCRIPT_LOC/boxshadow.sh "$FILE" "$FILE" || die "Unable to save screenshot"
echo "saved file" echo -e "saved file"
fi fi

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
choice=`echo "suspend\nshutdown\npoweroff\nreboot\nlock\nhibernate" | wofi -d -Oalphabetical` choice=`echo -e "suspend\nshutdown\npoweroff\nreboot\nlock\nhibernate" | wofi -d -Oalphabetical`
if test "$choice" = lock ; then if test "$choice" = lock ; then
bright=`light` bright=`light`
swayidle -w \ swayidle -w \

View File

@ -1,4 +1,4 @@
scheme=$(echo "light\ndark" | wofi -d -p "Select color scheme") scheme=$(echo -e "light\ndark" | wofi -d -p "Select color scheme")
# simply subsitude dark and light # simply subsitude dark and light
if [ $scheme = "light" ]; then if [ $scheme = "light" ]; then
@ -26,14 +26,14 @@ if [ $scheme = "light" ]; then
# set wallpaper location # set wallpaper location
unlink ~/.config/sway/Wallpaper unlink ~/.config/sway/Wallpaper
ln -s ~/Pictures/Wallpapers/light ~/.config/sway/Wallpaper ln -s ~/Pictures/wall/sway/light ~/.config/sway/Wallpaper
else else
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" &
mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
# set dark wallpaper # set dark wallpaper
unlink ~/.config/sway/Wallpaper unlink ~/.config/sway/Wallpaper
ln -s ~/Pictures/Wallpapers/dark ~/.config/sway/Wallpaper ln -s ~/Pictures/wall/sway/dark ~/.config/sway/Wallpaper
fi fi
sway reload sway reload

View File

@ -4,6 +4,13 @@ export PATH="${PATH}:${HOME}/.local/bin"
export XDG_RUNTIME_DIR=/run/user/1000 export XDG_RUNTIME_DIR=/run/user/1000
export XDG_CACHE_HOME=$HOME/.cache export XDG_CACHE_HOME=$HOME/.cache
# If not using sway, we exit
if ! pidof sway > /dev/null
then
exit
fi
# If the deamon starts first time, we only init it, and the wallpaper will be updated
if ! pidof swww-daemon > /dev/null if ! pidof swww-daemon > /dev/null
then then
swww init swww init

View File

@ -28,15 +28,15 @@
"format-alt": " {usage}% @ {avg_frequency}GHz" "format-alt": " {usage}% @ {avg_frequency}GHz"
}, },
"memory": { "memory": {
"format": " {used:0.1f}G / {total:0.1f}G", "format": "󰍛 {used:0.1f}G / {total:0.1f}G",
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G" "format-alt": "󰓡 Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
}, },
"network": { "network": {
"format-wifi": " {essid} ({signalStrength}%)", "format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}", "format-ethernet": "󰈀 {ifname}",
"format-linked": " {ifname}", "format-linked": " {ifname}",
"format-disconnected": " Disconnected", "format-disconnected": "󰌙 Disconnected",
"format-alt": " {ifname}: {ipaddr}/{cidr}", "format-alt": "󰩟 {ifname}: {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr}" "tooltip-format": "{ifname} via {gwaddr}"
}, },
"battery": { "battery": {
@ -46,7 +46,7 @@
"critical": 5 "critical": 5
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": " {capacity}%", "format-charging": "🗲 {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-alt": "{icon} ETA: {time}", "format-alt": "{icon} ETA: {time}",
"format-icons": [ "format-icons": [
@ -58,7 +58,7 @@
] ]
}, },
"clock": { "clock": {
"format": "{: %H:%M\t %m-%d}", "format": "{:󰅐 %H:%M\t %m-%d}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
}, },
"custom/notification": { "custom/notification": {
@ -78,7 +78,7 @@
"escape": true "escape": true
}, },
"custom/player": { "custom/player": {
"format": " {}", "format": "󰎈 {}",
"return-type": "json", "return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F", "exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
"max-length": 35, "max-length": 35,

View File

@ -5,8 +5,8 @@
* { * {
border: none; border: none;
border-radius: 1px; border-radius: 1px;
font-family: "IBM Plex Sans", sans-serif; font-family: "IBM Plex Sans", "Symbols Nerd Font" ,sans-serif;
font-size: 13px; font-size: 14px;
min-height: 0; min-height: 0;
} }

View File

@ -1,13 +1,11 @@
# style # style
style=/home/juan/.config/wofi/dark.css style=/home/ryan/.config/wofi/dark.css
width=600 width=600
height=500 height=500
# opts # opts
show=drun show=drun
always_parse_args=true fork=true
show_all=true
print_command=true
layer=overlay layer=overlay
insensitive=true insensitive=true
location=center location=center