mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
Compare commits
2 Commits
ceabeeca7b
...
e8845b5f56
Author | SHA1 | Date | |
---|---|---|---|
|
e8845b5f56 | ||
|
16e208eca4 |
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||||
|
|
||||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
bspc monitor DP-4 -d I II III IV
|
||||||
# bspc monitor eDP1 -d I II III IV
|
bspc monitor DP-0 -d V VI VII VIII IX X
|
||||||
# bspc monitor DP1 -d V VI VII VIII IX X
|
|
||||||
|
|
||||||
bspc config border_width 6
|
bspc config border_width 5
|
||||||
bspc config window_gap 15
|
bspc config border_radius 14
|
||||||
bspc config top_padding 60
|
bspc config window_gap 8
|
||||||
|
bspc config top_padding 42
|
||||||
|
|
||||||
bspc config split_ratio 0.55
|
bspc config split_ratio 0.55
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
@ -17,8 +17,8 @@ bspc config pointer_follows_focus true
|
|||||||
bspc config focus_follows_pointer true
|
bspc config focus_follows_pointer true
|
||||||
|
|
||||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||||
bspc rule -a Chromium desktop='^2'
|
bspc rule -a Chromium desktop='^5'
|
||||||
bspc rule -a firefox desktop='^2'
|
bspc rule -a firefox desktop='^5'
|
||||||
bspc rule -a mplayer2 state=floating
|
bspc rule -a mplayer2 state=floating
|
||||||
bspc rule -a Yad state=floating
|
bspc rule -a Yad state=floating
|
||||||
bspc rule -a Kupfer.py focus=on
|
bspc rule -a Kupfer.py focus=on
|
||||||
@ -26,40 +26,54 @@ bspc rule -a Screenkey manage=off
|
|||||||
bspc rule -a gl state=floating
|
bspc rule -a gl state=floating
|
||||||
bspc rule -a Gl state=floating
|
bspc rule -a Gl state=floating
|
||||||
bspc rule -a mpv state=floating
|
bspc rule -a mpv state=floating
|
||||||
|
bspc rule -a Emacs state=floating center=true rectangle=1900x1111+0+0
|
||||||
|
bspc rule -a DBeaver state=floating center=true rectangle=2123x1234+0+0
|
||||||
|
|
||||||
# Border
|
# Border
|
||||||
# dracula blue
|
# dracula blue
|
||||||
bspc config focused_border_color "#bd93f9"
|
# bspc config focused_border_color "#bd93f9"
|
||||||
|
bspc config focused_border_color "#2C4762"
|
||||||
bspc config normal_border_color "#073642"
|
bspc config normal_border_color "#073642"
|
||||||
bspc config active_border_color "#073642"
|
bspc config active_border_color "#073642"
|
||||||
|
|
||||||
#
|
|
||||||
# Autostart
|
# Autostart
|
||||||
#
|
|
||||||
# Set display from arandr saved script
|
# Wallpapers
|
||||||
sh ~/.screenlayout/monitor.sh &
|
# feh --bg-scale ~/.wallpapers/MYSanGun-Inverted.png ~/.wallpapers/MYSanGun.png
|
||||||
|
variety &
|
||||||
|
|
||||||
|
copyq &
|
||||||
|
|
||||||
# Notifications
|
# Notifications
|
||||||
/usr/bin/dunst &
|
dunst -conf ~/.config/dunst/dunstrc &
|
||||||
|
|
||||||
# Polkit
|
# Polkit
|
||||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
# Wallpaper
|
|
||||||
# nitrogen --restore &
|
|
||||||
# Dex
|
# Dex
|
||||||
dex -a -s /etc/xdg/autostart/:~/.config/autostart/
|
dex -a -s /etc/xdg/autostart/:~/.config/autostart/
|
||||||
|
|
||||||
# Picom
|
# Picom
|
||||||
picom --config ~/.config/picom/picom.conf &
|
picom --config ~/.config/picom/picom.conf &
|
||||||
|
|
||||||
# Network Applet
|
# Network Applet
|
||||||
nm-applet --indicator &
|
nm-applet --indicator &
|
||||||
|
|
||||||
# SmoothVideoProject
|
# emacs --bg-daemon
|
||||||
SVPManager &
|
|
||||||
|
SVPManager \t &
|
||||||
|
|
||||||
# screensaver
|
# screensaver
|
||||||
xss-lock -- xscreensaver-command -lock &
|
if pgrep xscreensaver; then
|
||||||
|
killall xscreensaver
|
||||||
|
fi
|
||||||
|
xscreensaver --no-splash &
|
||||||
|
|
||||||
# Bar
|
# Bar
|
||||||
# ~/.config/polybar/launch.sh &
|
~/SudacodeRice/scripts/launch_desktop.sh
|
||||||
~/SudacodeRice/scripts/launch.sh
|
|
||||||
|
# start yubikey ssh-agen
|
||||||
|
yubikey-agent -l "$XDG_RUNTIME_DIR/yubikey-agent/yubikey-agent.sock" &
|
||||||
|
|
||||||
# Cursor
|
# Cursor
|
||||||
# xsetroot -cursor_name left_ptr &
|
# xsetroot -cursor_name left_ptr &
|
||||||
|
@ -70,7 +70,6 @@ height = 40
|
|||||||
; the percentage can optionally be extended with a pixel offset like so:
|
; the percentage can optionally be extended with a pixel offset like so:
|
||||||
; 50%:-10, this will result in an offset in the x or y direction
|
; 50%:-10, this will result in an offset in the x or y direction
|
||||||
; of 50% minus 10 pixels
|
; of 50% minus 10 pixels
|
||||||
; offset-x = 2.5%
|
|
||||||
offset-x = 0.3%
|
offset-x = 0.3%
|
||||||
offset-y = 0.38%
|
offset-y = 0.38%
|
||||||
|
|
||||||
@ -89,15 +88,14 @@ foreground = ${color.foreground}
|
|||||||
; doesn't get rounded
|
; doesn't get rounded
|
||||||
; Individual top/bottom values can be defined using:
|
; Individual top/bottom values can be defined using:
|
||||||
; radius-{top,bottom}
|
; radius-{top,bottom}
|
||||||
; HANDLED BY PICOM
|
radius-top = 14.0
|
||||||
; radius-top = 0.0
|
radius-bottom = 14.0
|
||||||
; radius-bottom = 0.0
|
|
||||||
|
|
||||||
; Under-/overline pixel size and argb color
|
; Under-/overline pixel size and argb color
|
||||||
; Individual values can be defined using:
|
; Individual values can be defined using:
|
||||||
; {overline,underline}-size
|
; {overline,underline}-size
|
||||||
; {overline,underline}-color
|
; {overline,underline}-color
|
||||||
line-size = 5
|
line-size = 6
|
||||||
line-color = ${color.background}
|
line-color = ${color.background}
|
||||||
|
|
||||||
; Values applied to all borders
|
; Values applied to all borders
|
||||||
@ -117,7 +115,8 @@ border-bottom-color = ${color.primary}
|
|||||||
; Number of spaces to add at the beginning/end of the bar
|
; Number of spaces to add at the beginning/end of the bar
|
||||||
; Individual side values can be defined using:
|
; Individual side values can be defined using:
|
||||||
; padding-{left,right}
|
; padding-{left,right}
|
||||||
padding = 0.5
|
; padding = 0.5
|
||||||
|
padding = 1
|
||||||
|
|
||||||
; Number of spaces to add before/after each module
|
; Number of spaces to add before/after each module
|
||||||
; Individual side values can be defined using:
|
; Individual side values can be defined using:
|
||||||
|
@ -29,14 +29,14 @@ song() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-l | --library) mode=Library ;;
|
-l | --library) mode=Library ;;
|
||||||
-A | --album) mode=Album ;;
|
-A | --album) mode=Album ;;
|
||||||
-s | --song) mode=Song ;;
|
-s | --song) mode=Song ;;
|
||||||
-a | --ask)
|
-a | --ask)
|
||||||
MODE=$(printf "Library\nAlbum\nSong" | m -p "Choose mode" -l 3)
|
MODE=$(printf "Library\nAlbum\nSong" | m -p "Choose mode" -l 3)
|
||||||
mode=$MODE
|
mode=$MODE
|
||||||
;;
|
;;
|
||||||
-h | --help)
|
-h | --help)
|
||||||
echo "
|
echo "
|
||||||
usage: rofi-mpd [-h] [-l] [-s] [-a]
|
usage: rofi-mpd [-h] [-l] [-s] [-a]
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
Library)
|
Library)
|
||||||
artist=$(artist)
|
artist=$(artist)
|
||||||
[ ! "$artist" ] && exit
|
[ ! "$artist" ] && exit
|
||||||
album=$(a_album "$artist")
|
album=$(a_album "$artist")
|
||||||
@ -64,22 +64,22 @@ Library)
|
|||||||
[ ! "$album" ] && exit
|
[ ! "$album" ] && exit
|
||||||
[ "$cod" -eq 10 ] || mpc clear
|
[ "$cod" -eq 10 ] || mpc clear
|
||||||
mpc find artist "$artist" album "$album" | mpc add
|
mpc find artist "$artist" album "$album" | mpc add
|
||||||
mpc play >/dev/null
|
mpc play > /dev/null
|
||||||
;;
|
;;
|
||||||
Song)
|
Song)
|
||||||
song=$(song)
|
song=$(song)
|
||||||
cod=$?
|
cod=$?
|
||||||
[ ! "$song" ] && exit
|
[ ! "$song" ] && exit
|
||||||
[ "$cod" -eq 10 ] || mpc clear
|
[ "$cod" -eq 10 ] || mpc clear
|
||||||
mpc search "(title==\"$song\")" | mpc add
|
mpc search "(title==\"$song\")" | mpc add
|
||||||
mpc play >/dev/null
|
mpc play > /dev/null
|
||||||
;;
|
;;
|
||||||
Album)
|
Album)
|
||||||
album=$(album)
|
album=$(album)
|
||||||
cod=$?
|
cod=$?
|
||||||
[ ! "$album" ] && exit
|
[ ! "$album" ] && exit
|
||||||
[ "$cod" -eq 10 ] || mpc clear
|
[ "$cod" -eq 10 ] || mpc clear
|
||||||
mpc find album "$album" | mpc add
|
mpc find album "$album" | mpc add
|
||||||
mpc play >/dev/null
|
mpc play > /dev/null
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -147,31 +147,25 @@ super + {Left,Down,Up,Right}
|
|||||||
# Special hotkeys
|
# Special hotkeys
|
||||||
#
|
#
|
||||||
|
|
||||||
# Multimedia keys
|
# Volume Control
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
amixer -q set Master 5%+ unmute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py increase
|
amixer -q set Master 5%+ unmute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py increase
|
||||||
|
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
amixer -q set Master 5%- unmute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py decrease
|
amixer -q set Master 5%- unmute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py decrease
|
||||||
|
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
amixer -D pulse sset Master toggle-mute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py mute
|
amixer -D pulse sset Master toggle-mute && ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py mute
|
||||||
|
|
||||||
# XF86AudioRaiseVolume @DEFAULT_SINK@ +10%; ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py increase
|
# Next/Toggle/Prev Song
|
||||||
|
XF86AudioPrev
|
||||||
|
~/SudacodeRice/scripts/music-controls.sh -p
|
||||||
|
XF86AudioPlay
|
||||||
|
~/SudacodeRice/scripts/music-controls.sh -t
|
||||||
|
XF86AudioNext
|
||||||
|
~/SudacodeRice/scripts/music-controls.sh -n
|
||||||
|
|
||||||
# XF86AudioLowerVolume pactl set-sink-volume @DEFAULT_SINK@ -10%; ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py decrease
|
# Brightness
|
||||||
|
|
||||||
# XF86AudioMute @DEFAULT_SINK@ toggle; ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py mute
|
|
||||||
|
|
||||||
|
|
||||||
# amixer -q set Master toggle
|
|
||||||
# Simple amixer command seems to have problems unmuting device
|
|
||||||
|
|
||||||
# Brightness up
|
|
||||||
XF86MonBrightnessUp
|
XF86MonBrightnessUp
|
||||||
xbacklight -inc 5
|
xbacklight -inc 5
|
||||||
|
|
||||||
# And brightness down
|
|
||||||
XF86MonBrightnessDown
|
XF86MonBrightnessDown
|
||||||
xbacklight -dec 5
|
xbacklight -dec 5
|
||||||
|
|
||||||
@ -183,29 +177,29 @@ alt+Print
|
|||||||
~/.config/bspwm/scripts/screenshot.sh
|
~/.config/bspwm/scripts/screenshot.sh
|
||||||
|
|
||||||
# Shortcuts
|
# Shortcuts
|
||||||
super + w
|
alt + p
|
||||||
firefox
|
pavucontrol
|
||||||
|
alt + t
|
||||||
super + t
|
|
||||||
thunar
|
thunar
|
||||||
|
alt + F1
|
||||||
super + F1
|
|
||||||
~/.config/bspwm/scripts/keybindings_rofi.sh
|
~/.config/bspwm/scripts/keybindings_rofi.sh
|
||||||
|
|
||||||
# ncmpcpp
|
|
||||||
alt + n
|
alt + n
|
||||||
alacritty -e ncmpcpp
|
alacritty -e ncmpcpp
|
||||||
|
|
||||||
# bpytop
|
|
||||||
alt + b
|
alt + b
|
||||||
alacritty -e bpytop
|
alacritty -e bpytop
|
||||||
|
|
||||||
|
# Rofi
|
||||||
alt + shift + p
|
alt + shift + p
|
||||||
~/.config/rofi/scripts/rofi-picom.sh
|
~/.config/rofi/scripts/rofi-picom.sh
|
||||||
alt + shift + n
|
alt + shift + n
|
||||||
~/.config/rofi/scripts/rofi-networks.sh
|
~/.config/rofi/scripts/rofi-networks.sh
|
||||||
|
alt + shift + m
|
||||||
|
~/SudacodeRice/scripts/rofi-mpd-desktop -s
|
||||||
|
alt + shift + g
|
||||||
|
~/SudacodeRice/scripts/rofi/rofi-search.sh
|
||||||
|
alt + shift + y
|
||||||
|
~/.bin/rofi-stream
|
||||||
|
|
||||||
# Rofi
|
|
||||||
control + shift + s
|
control + shift + s
|
||||||
~/Work/rofi/rofi-ssh.sh "$HOME/SudacodeRice/rofi/flat-orange.rasi"
|
~/Work/rofi/rofi-ssh.sh "$HOME/SudacodeRice/rofi/flat-orange.rasi"
|
||||||
control + shift + r
|
control + shift + r
|
||||||
|
Loading…
Reference in New Issue
Block a user