some things for other things and new mpv ui

This commit is contained in:
Chris Cochrun 2021-08-25 05:14:15 -05:00
parent 4f4bf30170
commit 485fbf28ba
14 changed files with 2135 additions and 75 deletions

View file

@ -214,7 +214,7 @@
:style { :style {
:border_width 0 :border_width 0
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg_focus beautiful.bg_normal :bg_focus beautiful.transparent
:fg_focus beautiful.fg_normal :fg_focus beautiful.fg_normal
} }
:layout { :layout {
@ -320,7 +320,7 @@
:right 10} :right 10}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg :bg beautiful.transparent
:fg beautiful.base0B}) :fg beautiful.base0B})
(set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out (set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out
@ -357,7 +357,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base09} :fg beautiful.base09}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -379,7 +379,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base0C} :fg beautiful.base0C}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -398,7 +398,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base0A} :fg beautiful.base0A}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -417,7 +417,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base0E} :fg beautiful.base0E}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -436,7 +436,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base08} :fg beautiful.base08}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -455,7 +455,7 @@
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base0D} :fg beautiful.base0D}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
@ -473,7 +473,7 @@
:left (dpi 9)} :left (dpi 9)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.transparent
:fg beautiful.base0C} :fg beautiful.base0C}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 10)}) :right (dpi 10)})
@ -486,7 +486,8 @@
:left (dpi 2)} :left (dpi 2)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :opacity 0.7
:bg beautiful.transparent
:fg beautiful.base0C} :fg beautiful.base0C}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 10)}) :right (dpi 10)})
@ -522,7 +523,7 @@
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.bg_normal :bg beautiful.bg_normal
:fg beautiful.fg_normal :fg beautiful.fg_normal
:opacity 0.95 :opacity 0.9
:screen s })) :screen s }))
(: s.mywibox :struts { :bottom (dpi 40) }) (: s.mywibox :struts { :bottom (dpi 40) })
@ -669,8 +670,8 @@
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1") (awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
(awful.spawn "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg") (awful.spawn "feh --bg-fill /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg")
(awful.spawn "caffeine") (awful.spawn "caffeine")
(awful.spawn "libinput-gestures-setup start")
(awful.spawn "bluetoothctl power on") (awful.spawn "bluetoothctl power on")
(awful.spawn "nextcloud --background") ;; (awful.spawn "nextcloud --background")
;; (awful.spawn "rbw-agent") ;; (awful.spawn "rbw-agent")
;; (awful.spawn "jellyfin-mpv-shim")
(awful.spawn "xset r rate 220 90") (awful.spawn "xset r rate 220 90")

View file

@ -132,7 +132,7 @@
{:description "launch dolphin file browser" :group "apps" }) {:description "launch dolphin file browser" :group "apps" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'")) (awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
{:description "launch scratchpad in new emacs frame" :group "apps" }) {:description "launch scratchpad in new emacs frame" :group "apps" })
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(org-agenda-list)'" (awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(chris/org-agenda)'"
{:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"})) {:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
{:description "launch org-agenda in new emacs frame" :group "apps" }) {:description "launch org-agenda in new emacs frame" :group "apps" })
(awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'")) (awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'"))

View file

@ -104,7 +104,7 @@
{ {
:rule_any { :rule_any {
:name [ :name [
"*Org Agenda(a)*" "org-agenda"
] ]
:class [ :class [
"org-agenda" "org-agenda"

View file

@ -37,11 +37,11 @@ theme.base0F = "#b2643c"
theme.bg_darker = "#1a1a25" theme.bg_darker = "#1a1a25"
theme.bg_normal = theme.base00 theme.bg_normal = theme.base00
theme.bg_opac20 = "#282a36CD"
theme.bg_light = theme.base01 theme.bg_light = theme.base01
theme.bg_focus = theme.base0D -- Base02 theme.bg_focus = theme.base0D -- Base02
theme.bg_minimize = theme.base02 theme.bg_minimize = theme.base02
theme.bg_urgent = "#ff5c57" theme.bg_urgent = "#ff5c57"
theme.bg_systray = theme.transparent
theme.fg_normal = theme.base05 theme.fg_normal = theme.base05
theme.fg_focus = theme.base03 theme.fg_focus = theme.base03
@ -53,6 +53,7 @@ theme.red = "#ff5c57"
theme.useless_gap = dpi(9) theme.useless_gap = dpi(9)
theme.border_width = dpi(0) theme.border_width = dpi(0)
theme.transparent = "#00000000" theme.transparent = "#00000000"
theme.bg_systray = "#282a36AA"
theme.border_normal = "#00000000" theme.border_normal = "#00000000"
theme.border_focus = "#00000000" theme.border_focus = "#00000000"
theme.border_marked = "#00000000" theme.border_marked = "#00000000"

View file

@ -1,4 +1,5 @@
# Use GPU-accelerated video output by default # Use GPU-accelerated video output by default
osc=no
vo=gpu vo=gpu
af=scaletempo2 af=scaletempo2
autofit=80% autofit=80%

2041
mpv/scripts/morden-ui.lua Normal file

File diff suppressed because it is too large Load diff

View file

@ -14,8 +14,8 @@ mod="Mod4"
riverctl map normal $mod Return spawn alacritty riverctl map normal $mod Return spawn alacritty
riverctl map normal $mod E spawn "emacsclient -c -a 'emacs'" riverctl map normal $mod E spawn "emacsclient -c -a 'emacs'"
riverctl map normal $mod B spawn qutebrowser riverctl map normal $mod B spawn qutebrowser
riverctl map normal None Menu spawn "rofi -no-lazy-grab -show drun -modi drun" riverctl map normal None Menu spawn "wofi --show drun"
riverctl map normal $mod Menu spawn "rofi -no-lazy-grab -show run -modi run" riverctl map normal $mod Menu spawn "wofi --show run"
riverctl map normal $mod P spawn rofi-rbw riverctl map normal $mod P spawn rofi-rbw
@ -169,13 +169,13 @@ riverctl csd-filter-add "gedit"
# riverctl csd-filter-remove "emacs" # riverctl csd-filter-remove "emacs"
# Set opacity and fade effect # Set opacity and fade effect
riverctl opacity 0.95 0.45 0.0 0.1 20 # riverctl opacity 0.95 0.45 0.0 0.1 20
# Set cursor theme # Set cursor theme
riverctl xcursor-theme breeze-snow riverctl xcursor-theme breeze-snow
#set the decos #set the decos
riverctl border-width 0 riverctl border-width 1
# set pointer speed # set pointer speed
riverctl input 1118:1997:Microsoft_Surface_Keyboard_Touchpad tap enabled riverctl input 1118:1997:Microsoft_Surface_Keyboard_Touchpad tap enabled
@ -195,8 +195,6 @@ riverctl spawn 'export XDG_CURRENT_DESKTOP="Unity"'
riverctl spawn 'waybar' riverctl spawn 'waybar'
riverctl spawn 'swaybg -i /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg -m fill' riverctl spawn 'swaybg -i /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg -m fill'
riverctl spawn 'export QT_QPA_PLATFORMTHEME="qt5ct"'
# Use kile as my layout generator allows me to create really unique layouts # Use kile as my layout generator allows me to create really unique layouts
# with an s-expression syntax # with an s-expression syntax
riverctl spawn kile riverctl spawn kile
@ -212,7 +210,7 @@ read -r -d '' TEST <<EOM
EOM EOM
riverctl send-layout-cmd kile "all $TEST" riverctl send-layout-cmd kile "all $TEST"
riverctl send-layout-cmd kile "outer_padding 20" riverctl send-layout-cmd kile "outer_padding 10"
riverctl send-layout-cmd kile "view_padding 10" riverctl send-layout-cmd kile "view_padding 10"
riverctl send-layout-cmd kile "smart_padding false" riverctl send-layout-cmd kile "smart_padding false"

View file

@ -6,6 +6,9 @@ root=~/.password-store
CACHE=~/.local/tmp/pass_rofi CACHE=~/.local/tmp/pass_rofi
seat=seat0 seat=seat0
rbw sync
rbw list
list_passwords() { list_passwords() {
rbw list rbw list
} }

9
scripts/wofi-window Normal file
View file

@ -0,0 +1,9 @@
!#/bin/bash
swaymsg -t get_tree |
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else []
end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) +
"" + .name)' |
wofi --show dmenu | {
read -r id name
swaymsg "[con_id=$id]" focus
}

View file

@ -9,7 +9,7 @@ set $up k
set $right l set $right l
set $term alacritty set $term alacritty
set $menu rofi -no-lazy-grab -show drun -modi drun | xargs swaymsg exec -- set $menu wofi --show drun | xargs swaymsg exec --
### Output configuration ### Output configuration
output * bg /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg fill output * bg /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg fill
@ -48,8 +48,8 @@ input type:touchpad {
} }
### Style ### Style
gaps outer 10 gaps outer 5
gaps inner 20 gaps inner 10
# smart_gaps on # smart_gaps on
default_border none default_border none
@ -75,7 +75,7 @@ titlebar_border_thickness 1
# Start your launcher # Start your launcher
bindsym Menu exec $menu bindsym Menu exec $menu
bindsym $mod+Shift+Menu exec wofi --show drun bindsym $mod+Shift+Menu exec wofi --show drun
bindsym $mod+Menu exec rofi -no-lazy-grab -show run -modi run | xargs swaymsg exec -- bindsym $mod+Menu exec wofi --show run | xargs swaymsg exec --
bindsym $mod+s exec filesearch bindsym $mod+s exec filesearch
#Pass #Pass
@ -232,11 +232,11 @@ bindsym $mod+o mode "$mode_launcher"
bindsym $mod+Ctrl+m exec makoctl dismiss -a bindsym $mod+Ctrl+m exec makoctl dismiss -a
mode "$mode_launcher" { mode "$mode_launcher" {
bindsym e exec emacsclient -c -a emacs & bindsym e exec emacsclient -c -a emacs &&mode "default"
bindsym b exec qutebrowser bindsym b exec qutebrowser &&mode "default"
bindsym a exec emacsclient -c -e '(chris/org-agenda)' bindsym a exec emacsclient -c -e '(chris/org-agenda)' &&mode "default"
bindsym m exec emacsclient -c -e '(mu4e)' bindsym m exec emacsclient -c -e '(mu4e)' &&mode "default"
bindsym Shift+d exec dolphin bindsym Shift+d exec dolphin &&mode "default"
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
@ -251,6 +251,7 @@ bar {
} }
for_window [title="org-agend"] floating enable
for_window [app_id="mpv"] floating enable for_window [app_id="mpv"] floating enable
for_window [app_id="imv"] floating enable for_window [app_id="imv"] floating enable
for_window [app_id="dolphin"] floating enable for_window [app_id="dolphin"] floating enable

View file

@ -1,16 +1,16 @@
{ {
// "layer": "top", // Waybar at top layer // "layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right) "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 35, // Waybar height (to be removed for auto height) "height": 25, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "river/tags", "sway/mode", "sway/window"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "tray"], "modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"],
// "margin-top": -10, "margin-top": 0,
"margin-bottom": 10, "margin-bottom": 0,
"margin-left": 29, "margin-left": 0,
"margin-right": 29, "margin-right": 0,
// Modules configuration // Modules configuration
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@ -82,7 +82,7 @@
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
// "format-full": "", // "format-full": "",
"format-icons": [" ", " ", " ", " ", " "] "format-icons": [" ", " ", " ", " ", " "]
}, },
"battery#bat2": { "battery#bat2": {
"bat": "BAT2", "bat": "BAT2",
@ -97,7 +97,7 @@
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
// "format-full": "", // "format-full": "",
"format-icons": [" ", " ", " ", " ", " "] "format-icons": [" ", " ", " ", " ", " "]
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface

View file

@ -33,7 +33,7 @@
window { window {
color: @base05; color: @base05;
background: @base00; background: @base00;
border-radius: 20px; /* border-radius: 20px; */
} }
window#waybar.solo { window#waybar.solo {
@ -50,7 +50,7 @@ window#waybar.solo {
#tags { #tags {
border-radius: 20px; border-radius: 20px;
margin-left: 10px; margin-left: 6px;
padding-right: 10px; padding-right: 10px;
background: @backtransparent; background: @backtransparent;
transition: none; transition: none;
@ -96,8 +96,8 @@ window#waybar.solo {
} }
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail { #mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
margin: 0px 6px 0px 5px; margin: 0px 3px 0px 3px;
min-width: 25px; /* min-width: 25px; */
} }
#clock { #clock {
@ -135,10 +135,8 @@ window#waybar.solo {
} }
#pulseaudio { #pulseaudio {
margin-left: 2px; padding-left: 5px;
margin-right: 2px; padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base09; color: @base09;
@ -146,10 +144,8 @@ window#waybar.solo {
} }
#network { #network {
margin-left: 2px; padding-left: 5px;
margin-right: 2px; padding-right: 5px;
padding-left: 10px;
padding-right: 14px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0A; color: @base0A;
@ -157,10 +153,8 @@ window#waybar.solo {
} }
#cpu { #cpu {
margin-left: 2px; padding-left: 5px;
margin-right: 2px; padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0B; color: @base0B;
@ -168,10 +162,8 @@ window#waybar.solo {
} }
#battery { #battery {
margin-left: 2px;
margin-right: 2px;
padding-left: 5px; padding-left: 5px;
padding-right: 14px; padding-right: 5px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0D; color: @base0D;
@ -183,10 +175,8 @@ window#waybar.solo {
} }
#memory { #memory {
margin-left: 2px; padding-left: 5px;
margin-right: 2px; padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0E; color: @base0E;
@ -194,10 +184,8 @@ window#waybar.solo {
} }
#temperature { #temperature {
margin-left: 2px; padding-left: 5px;
margin-right: 2px; padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0E; color: @base0E;
@ -205,9 +193,8 @@ window#waybar.solo {
} }
#tray { #tray {
margin-right: 10px; padding-left: 5px;
padding-left: 10px; padding-right: 5px;
padding-right: 10px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base0E; color: @base0E;

View file

@ -1,5 +1,8 @@
width=60% width=60%
height=40% height=40%
columns=2 columns=1
parse_action=true parse_action=true
allow_images=true allow_images=true
dynamic_lines=true
term=alacritty
# key_forward=Control_L+j

View file

@ -47,7 +47,22 @@ window {
} }
#text { #text {
margin: 5px; margin: 2px;
border-radius: 20px;
color: @base05; color: @base05;
font-size: 14;
}
#img {
margin-left: 10px;
margin-top: 2px;
margin-bottom: 2px;
size: 1px;
}
#entry:selected {
background-color: @base0D;
}
#text:selected {
color: @base02;
} }