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

View file

@ -132,7 +132,7 @@
{:description "launch dolphin file browser" :group "apps" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
{: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"}))
{:description "launch org-agenda in new emacs frame" :group "apps" })
(awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'"))

View file

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

View file

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

View file

@ -1,4 +1,5 @@
# Use GPU-accelerated video output by default
osc=no
vo=gpu
af=scaletempo2
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 E spawn "emacsclient -c -a 'emacs'"
riverctl map normal $mod B spawn qutebrowser
riverctl map normal None Menu spawn "rofi -no-lazy-grab -show drun -modi drun"
riverctl map normal $mod Menu spawn "rofi -no-lazy-grab -show run -modi run"
riverctl map normal None Menu spawn "wofi --show drun"
riverctl map normal $mod Menu spawn "wofi --show run"
riverctl map normal $mod P spawn rofi-rbw
@ -169,13 +169,13 @@ riverctl csd-filter-add "gedit"
# riverctl csd-filter-remove "emacs"
# 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
riverctl xcursor-theme breeze-snow
#set the decos
riverctl border-width 0
riverctl border-width 1
# set pointer speed
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 '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
# with an s-expression syntax
riverctl spawn kile
@ -212,7 +210,7 @@ read -r -d '' TEST <<EOM
EOM
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 "smart_padding false"

View file

@ -6,6 +6,9 @@ root=~/.password-store
CACHE=~/.local/tmp/pass_rofi
seat=seat0
rbw sync
rbw list
list_passwords() {
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 $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 * bg /usr/share/wallpapers/Flow/contents/images/5120x2880.jpg fill
@ -48,8 +48,8 @@ input type:touchpad {
}
### Style
gaps outer 10
gaps inner 20
gaps outer 5
gaps inner 10
# smart_gaps on
default_border none
@ -75,7 +75,7 @@ titlebar_border_thickness 1
# Start your launcher
bindsym Menu exec $menu
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
#Pass
@ -232,11 +232,11 @@ bindsym $mod+o mode "$mode_launcher"
bindsym $mod+Ctrl+m exec makoctl dismiss -a
mode "$mode_launcher" {
bindsym e exec emacsclient -c -a emacs &
bindsym b exec qutebrowser
bindsym a exec emacsclient -c -e '(chris/org-agenda)'
bindsym m exec emacsclient -c -e '(mu4e)'
bindsym Shift+d exec dolphin
bindsym e exec emacsclient -c -a emacs &&mode "default"
bindsym b exec qutebrowser &&mode "default"
bindsym a exec emacsclient -c -e '(chris/org-agenda)' &&mode "default"
bindsym m exec emacsclient -c -e '(mu4e)' &&mode "default"
bindsym Shift+d exec dolphin &&mode "default"
bindsym Return 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="imv"] floating enable
for_window [app_id="dolphin"] floating enable

View file

@ -1,16 +1,16 @@
{
// "layer": "top", // Waybar at top layer
"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
// 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-right": ["pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "tray"],
// "margin-top": -10,
"margin-bottom": 10,
"margin-left": 29,
"margin-right": 29,
"modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"],
"margin-top": 0,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,

View file

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

View file

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

View file

@ -47,7 +47,22 @@ window {
}
#text {
margin: 5px;
border-radius: 20px;
margin: 2px;
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;
}