picom, mpv, tridactyl, and new transmission script

This commit is contained in:
Chris Cochrun 2020-10-07 07:36:56 -05:00
parent d36ce8b8b9
commit 907dc10bad
7 changed files with 298 additions and 291 deletions

View file

@ -33,148 +33,149 @@
;;; panel ;;; panel
;; (awful.screen.connect_for_each_screen (awful.screen.connect_for_each_screen
;; (fn [s] (fn [s]
;; ;; Wallpaper ;; Wallpaper
;; (set_wallpaper s) (set_wallpaper s)
;; ;; Each screen has its own tag table. ;; Each screen has its own tag table.
;; (awful.tag [ "" "" "" "" ] s (. awful.layout.layouts 1)) (awful.tag [ "" "" "" "" ] s (. awful.layout.layouts 1))
;; ;; Create a promptbox for each screen ;; Create a promptbox for each screen
;; (set s.mypromptbox (awful.widget.prompt)) (set s.mypromptbox (awful.widget.prompt))
;; ;; Create an imagebox widget which will contain an icon indicating which layout we're using. ;; Create an imagebox widget which will contain an icon indicating which layout we're using.
;; ;; We need one layoutbox per screen. ;; We need one layoutbox per screen.
;; (set s.mylayoutbox (awful.widget.layoutbox s)) (set s.mylayoutbox (awful.widget.layoutbox s))
;; (: s.mylayoutbox :buttons (gears.table.join (: s.mylayoutbox :buttons (gears.table.join
;; (awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts))) (awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
;; (awful.button [] 3 (fn [] (awful.layout.inc -1 s))) (awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
;; (awful.button [] 4 (fn [] (awful.layout.inc 1 s))) (awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
;; (awful.button [] 5 (fn [] (awful.layout.inc -1 s))))) (awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
;; ;; create a systray widget ;; create a systray widget
;; (set s.mysystray { (set s.mysystray {
;; 1 (wibox.widget.systray) 1 (wibox.widget.systray)
;; :widget wibox.container.background :widget wibox.container.background
;; }) })
;; ;; Create a taglist widget ;; Create a taglist widget
;; (set s.mytaglist (awful.widget.taglist { (set s.mytaglist (awful.widget.taglist {
;; :screen s :screen s
;; :filter awful.widget.taglist.filter.all :filter awful.widget.taglist.filter.all
;; :buttons taglist_buttons :buttons taglist_buttons
;; })) }))
;; ;; Create a tasklist widget ;; Create a tasklist widget
;; (set s.mytasklist (awful.widget.tasklist { (set s.mytasklist (awful.widget.tasklist {
;; :screen s :screen s
;; :filter awful.widget.tasklist.filter.currenttags :filter awful.widget.tasklist.filter.currenttags
;; :buttons tasklist_buttons :buttons tasklist_buttons
;; :style { :style {
;; :border_width 0 :border_width 0
;; :border_color "#777777" :border_color "#777777"
;; :shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
;; } }
;; :layout { :layout {
;; :spacing 20 :spacing 20
;; :spacing_widget { :spacing_widget {
;; 1 { 1 {
;; :forced_width 5 :forced_width 5
;; :forced_height (dpi 20) :forced_height (dpi 20)
;; :widget wibox.widget.seperator :widget wibox.widget.seperator
;; } }
;; :valign "center" :valign "center"
;; :halign "center" :halign "center"
;; :widget wibox.container.place :widget wibox.container.place
;; } }
;; :layout wibox.layout.flex.horizontal } :layout wibox.layout.flex.horizontal
;; } }
;; :widget_template { }
;; 1 { :widget_template {
;; 1 { 1 {
;; 1 { 1 {
;; 1 { 1 {
;; :id "icon_role" 1 {
;; :widget wibox.widget.imagebox :id "icon_role"
;; } :widget wibox.widget.imagebox
;; :margins 2 }
;; :widget wibox.container.margin :margins 2
;; } :widget wibox.container.margin
;; 2 { }
;; :id "text_role" 2 {
;; :widget wibox.widget.textbox :id "text_role"
;; } :widget wibox.widget.textbox
;; :layout wibox.layout.align.horizontal }
;; } :layout wibox.layout.align.horizontal
;; :left 10 }
;; :right 10 :left 10
;; :widget wibox.container.margin :right 10
;; } :widget wibox.container.margin
;; :id "background_role" }
;; :widget wibox.container.background})) :id "background_role"
:widget wibox.container.background}))
;; ;; create battery network and volume widgets ;; create battery network and volume widgets
;; (set s.battery (require widget.battery)) (set s.battery (require widget.battery))
;; (set s.volume (require widget.volume)) (set s.volume (require widget.volume))
;; (set s.updater (require widget.package-updater)) (set s.updater (require widget.package-updater))
;; ;; create right widgets ;; create right widgets
;; (set s.myrightwidgets { (set s.myrightwidgets {
;; 1 { 1 {
;; :layout wibox.layout.fixed.horizontal :layout wibox.layout.fixed.horizontal
;; 1 s.volume 1 s.volume
;; 2 s.mysystray 2 s.mysystray
;; 3 s.updater 3 s.updater
;; 4 s.battery 4 s.battery
;; 5 (wibox.container.margin (s.mylayoutbox 0 (dpi 25) 0 0)) 5 (wibox.container.margin (s.mylayoutbox 0 (dpi 25) 0 0))
;; } }
;; :widget wibox.container.background}) :widget wibox.container.background})
;; ;; empty widget to use for spacing ;; empty widget to use for spacing
;; (set s.myemptywidget (wibox.widget { (set s.myemptywidget (wibox.widget {
;; :markup "" :markup ""
;; :align "" :align ""
;; :valign "" :valign ""
;; :widget wibox.widget.textbox :widget wibox.widget.textbox
;; })) }))
;; (local yoffset (dpi 45)) (local yoffset (dpi 45))
;; (local xoffset (dpi 18)) (local xoffset (dpi 18))
;; (set s.mypanel (wibox.wibox { (set s.mypanel (wibox.wibox {
;; :x (+ s.geometry.x xoffset) :x (+ s.geometry.x xoffset)
;; :y (- s.geometry.height yoffset) :y (- s.geometry.height yoffset)
;; :height (dpi 30) :height (dpi 30)
;; :width (- s.geometry.width (* xoffset 2)) :width (- s.geometry.width (* xoffset 2))
;; :ontop false :ontop false
;; :stretch false :stretch false
;; :type "dock" :type "dock"
;; :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.65 :opacity 0.65
;; })) }))
;; (: s.mypanel :struts { (: s.mypanel :struts {
;; :bottom (dpi 40) :bottom (dpi 40)
;; }) })
;; (: s.mypanel :setup { (: s.mypanel :setup {
;; :layout wibox.layout.align.horizontal :layout wibox.layout.align.horizontal
;; :expand "outside" :expand "outside"
;; 1 { 1 {
;; :layout wibox.layout.align.horizontal :layout wibox.layout.align.horizontal
;; 1 (wibox.container.margin (s.mytaglist (dpi 15) 0 (dpi -3) 0)) 1 (wibox.container.margin (s.mytaglist (dpi 15) 0 (dpi -3) 0))
;; 2 (wibox.container.margin (s.mytasklist (dpi 25) (dpi 25) 0 0)) 2 (wibox.container.margin (s.mytasklist (dpi 25) (dpi 25) 0 0))
;; 3 s.myemptywidget 3 s.myemptywidget
;; :spacing (dpi 15) :spacing (dpi 15)
;; } }
;; 2 mytextclock 2 mytextclock
;; 3 { 3 {
;; :layout wibox.layout.align.horizontal :layout wibox.layout.align.horizontal
;; 1 s.myemptywidget 1 s.myemptywidget
;; 2 (wibox.container.margin (s.mypromptbox (dpi 25) (dpi 25) 0 0)) 2 (wibox.container.margin (s.mypromptbox (dpi 25) (dpi 25) 0 0))
;; 3 s.myrightwidgets 3 s.myrightwidgets
;; } }
;; :visible true :visible true
;; }) })
;; )) ))
(root.keys globalkeys) (root.keys globalkeys)

View file

@ -147,168 +147,168 @@ end
screen.connect_signal("property::geometry", set_wallpaper) screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function(s) -- awful.screen.connect_for_each_screen(function(s)
-- Wallpaper -- -- Wallpaper
set_wallpaper(s) -- set_wallpaper(s)
-- Each screen has its own tag table. -- -- Each screen has its own tag table.
awful.tag({ "", "", "", ""}, s, awful.layout.layouts[1]) -- awful.tag({ "  ", "  ", "  ", "  "}, s, awful.layout.layouts[1])
s.padding = { -- s.padding = {
bottom = dpi(20) -- bottom = dpi(20)
} -- }
yoffset = dpi(45) -- yoffset = dpi(45)
xoffset = dpi(18) -- xoffset = dpi(18)
mypanel = wibox -- mypanel = wibox
({ -- ({
x = s.geometry.x + xoffset, -- x = s.geometry.x + xoffset,
y = s.geometry.height - yoffset, -- y = s.geometry.height - yoffset,
height = dpi(30), -- height = dpi(30),
width = s.geometry.width - (xoffset * 2), -- width = s.geometry.width - (xoffset * 2),
ontop = false, -- ontop = false,
stretch = false, -- stretch = false,
type = "dock", -- type = "dock",
screen = s, -- screen = s,
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.65, -- opacity = 0.65,
}) -- })
mypanel:struts { -- mypanel:struts {
bottom = dpi(40) -- bottom = dpi(40)
} -- }
-- Create a promptbox for each screen -- -- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt() -- s.mypromptbox = awful.widget.prompt()
-- Create an imagebox widget which will contain an icon indicating which layout we're using. -- -- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen. -- -- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s) -- s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(gears.table.join( -- s.mylayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end), -- awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end), -- awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end), -- awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end))) -- awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Create a taglist widget -- -- Create a taglist widget
s.mytaglist = awful.widget.taglist { -- s.mytaglist = awful.widget.taglist {
screen = s, -- screen = s,
filter = awful.widget.taglist.filter.all, -- filter = awful.widget.taglist.filter.all,
buttons = taglist_buttons -- buttons = taglist_buttons
} -- }
-- Create a systray widget -- -- Create a systray widget
s.mysystray = { -- s.mysystray = {
wibox.widget.systray(), -- wibox.widget.systray(),
-- bg = "#00FF0066", -- -- bg = "#00FF0066",
widget = wibox.container.background, -- widget = wibox.container.background,
} -- }
s.mytasklist = awful.widget.tasklist { -- s.mytasklist = awful.widget.tasklist {
screen = s, -- screen = s,
filter = awful.widget.tasklist.filter.currenttags, -- filter = awful.widget.tasklist.filter.currenttags,
buttons = tasklist_buttons, -- buttons = tasklist_buttons,
style = { -- style = {
border_width = 0, -- border_width = 0,
border_color = '#777777', -- border_color = '#777777',
shape = gears.shape.rounded_bar, -- shape = gears.shape.rounded_bar,
}, -- },
layout = { -- layout = {
spacing = 20, -- spacing = 20,
spacing_widget = { -- spacing_widget = {
{ -- {
forced_width = 5, -- forced_width = 5,
forced_height = dpi(20), -- forced_height = dpi(20),
-- shape = gears.shape.circle, -- -- shape = gears.shape.circle,
widget = wibox.widget.separator -- widget = wibox.widget.separator
}, -- },
valign = 'center', -- valign = 'center',
halign = 'center', -- halign = 'center',
widget = wibox.container.place, -- widget = wibox.container.place,
}, -- },
layout = wibox.layout.flex.horizontal -- layout = wibox.layout.flex.horizontal
}, -- },
-- notice that there is *no* wibox.wibox prefix, it is a template, -- -- notice that there is *no* wibox.wibox prefix, it is a template,
-- not a widget instance. -- -- not a widget instance.
widget_template = { -- widget_template = {
{ -- {
{ -- {
{ -- {
{ -- {
id = 'icon_role', -- id = 'icon_role',
widget = wibox.widget.imagebox, -- widget = wibox.widget.imagebox,
}, -- },
margins = 2, -- margins = 2,
widget = wibox.container.margin, -- widget = wibox.container.margin,
}, -- },
{ -- {
id = 'text_role', -- id = 'text_role',
widget = wibox.widget.textbox, -- widget = wibox.widget.textbox,
}, -- },
layout = wibox.layout.align.horizontal, -- layout = wibox.layout.align.horizontal,
}, -- },
left = 10, -- left = 10,
right = 10, -- right = 10,
widget = wibox.container.margin -- widget = wibox.container.margin
}, -- },
id = 'background_role', -- id = 'background_role',
widget = wibox.container.background, -- widget = wibox.container.background,
}, -- },
} -- }
-- Create Battery, Network, and Volume widget -- -- Create Battery, Network, and Volume widget
s.battery = require('widget.battery')() -- s.battery = require('widget.battery')()
-- s.network = require('widget.network')() -- -- s.network = require('widget.network')()
s.volume = require('widget.volume')() -- s.volume = require('widget.volume')()
s.updater = require('widget.package-updater')() -- s.updater = require('widget.package-updater')()
s.myrightwidgets = -- s.myrightwidgets =
{ -- {
{ -- Right widgets -- { -- Right widgets
layout = wibox.layout.fixed.horizontal, -- layout = wibox.layout.fixed.horizontal,
s.volume, -- s.volume,
s.mysystray, -- s.mysystray,
s.updater, -- s.updater,
-- s.network, -- -- s.network,
s.battery, -- s.battery,
wibox.container.margin (s.mylayoutbox,0,dpi(25),0,0), -- wibox.container.margin (s.mylayoutbox,0,dpi(25),0,0),
}, -- },
-- bg = "#00FF0066", -- -- bg = "#00FF0066",
widget = wibox.container.background, -- widget = wibox.container.background,
} -- }
-- Empty widget to use for spacing -- -- Empty widget to use for spacing
s.myemptywidget = wibox.widget{ -- s.myemptywidget = wibox.widget{
markup = '', -- markup = '',
align = '', -- align = '',
valign = '', -- valign = '',
widget = wibox.widget.textbox -- widget = wibox.widget.textbox
} -- }
-- -- Add widgets to the wibox -- -- -- Add widgets to the wibox
mypanel:setup { -- mypanel:setup {
layout = wibox.layout.align.horizontal, -- layout = wibox.layout.align.horizontal,
expand = "outside", -- expand = "outside",
{ -- Left widgets -- { -- Left widgets
layout = wibox.layout.align.horizontal, -- layout = wibox.layout.align.horizontal,
wibox.container.margin (s.mytaglist,dpi(15),0,dpi(-3),0), -- wibox.container.margin (s.mytaglist,dpi(15),0,dpi(-3),0),
wibox.container.margin (s.mytasklist,dpi(25),dpi(25),0,0), -- Middle widget -- wibox.container.margin (s.mytasklist,dpi(25),dpi(25),0,0), -- Middle widget
s.myemptywidget, -- s.myemptywidget,
spacing = dpi(15) -- spacing = dpi(15)
}, -- },
mytextclock, -- mytextclock,
{ -- Right widgets -- { -- Right widgets
layout = wibox.layout.align.horizontal, -- layout = wibox.layout.align.horizontal,
s.myemptywidget, -- s.myemptywidget,
wibox.container.margin (s.mypromptbox,dpi(25),dpi(25),0,0), -- Middle widget -- wibox.container.margin (s.mypromptbox,dpi(25),dpi(25),0,0), -- Middle widget
s.myrightwidgets, -- s.myrightwidgets,
}, -- },
visible = true, -- visible = true,
} -- }
mypanel.visible = true -- mypanel.visible = true
end) -- end)
-- }}} -- }}}
-- {{{ Mouse bindings -- {{{ Mouse bindings

View file

@ -1,5 +1,5 @@
/* Modify these to change relative widths or default height */ /* Modify these to change relative widths or default height */
#navigator-toolbox{ --uc-navigationbar-width: -2vw; --uc-toolbar-height: 10px; --window-drag-space-width: 0px} #navigator-toolbox{ --uc-navigationbar-width: -2vw; --uc-toolbar-height: 27px; --window-drag-space-width: 0px}
/* Override for other densities */ /* Override for other densities */
:root[uidensity="compact"] > #navigator-toolbox{ --uc-toolbar-height: 22px;} :root[uidensity="compact"] > #navigator-toolbox{ --uc-toolbar-height: 22px;}
:root[uidensity="touch"] > #navigator-toolbox{ --uc-toolbar-height: 40px; } :root[uidensity="touch"] > #navigator-toolbox{ --uc-toolbar-height: 40px; }

View file

@ -2,3 +2,5 @@
vo=gpu vo=gpu
af=scaletempo2 af=scaletempo2
speed=2 speed=2
autofit=70%
geometry=50%:50%

View file

@ -33,18 +33,18 @@ shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12) # The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12 # shadow-radius = 12
shadow-radius = 8; shadow-radius = 6;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) # The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
shadow-opacity = .75 shadow-opacity = .75
# The left offset for shadows, in pixels. (defaults to -15) # The left offset for shadows, in pixels. (defaults to -15)
# shadow-offset-x = -15 # shadow-offset-x = -15
shadow-offset-x = 3; shadow-offset-x = 1;
# The top offset for shadows, in pixels. (defaults to -15) # The top offset for shadows, in pixels. (defaults to -15)
# shadow-offset-y = -15 # shadow-offset-y = -15
shadow-offset-y = 3; shadow-offset-y = 1;
# Avoid drawing shadows on dock/panel windows. This option is deprecated, # Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead. # you should use the *wintypes* option in your config file instead.
@ -85,7 +85,7 @@ shadow-offset-y = 3;
shadow-exclude = [ shadow-exclude = [
"name = 'Notification'", "name = 'Notification'",
"class_g = 'Conky'", "class_g = 'Conky'",
# "class_g = 'firefox'", "class_g = 'firefox'",
"class_g ?= 'Notify-osd'", "class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'", "class_g = 'Cairo-clock'",
"class_g = 'slop'", "class_g = 'slop'",
@ -98,7 +98,7 @@ shadow-exclude = [
# shadow-exclude-reg = "x10+0+0" # shadow-exclude-reg = "x10+0+0"
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. # for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
# #
shadow-exclude-reg = "x0+0+0" shadow-exclude-reg = "x50+0+0"
# Crop shadow of a window fully on a particular Xinerama screen to the screen. # Crop shadow of a window fully on a particular Xinerama screen to the screen.
# xinerama-shadow-crop = false # xinerama-shadow-crop = false

3
scripts/transadd.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
transmission-remote -a "$@" && notify-send "Transmission-daemon" "Torrent added"

View file

@ -11,7 +11,7 @@ set searchurls.y https://www.yewtu.be/search?q=
set searchurls.aw https://wiki.archlinux.org/index.php?search= set searchurls.aw https://wiki.archlinux.org/index.php?search=
set searchurls.qt https://doc.qt.io/qt-5/search-results.html?q= set searchurls.qt https://doc.qt.io/qt-5/search-results.html?q=
set searchurls.mel https://melpa.org/#/?q= set searchurls.mel https://melpa.org/#/?q=
set searchurls.ser https://searx.xyz/?q= set searchurls.ser https://search.snopyta.org/?q=
set searchurls.fel https://felgo.com/search-results?q= set searchurls.fel https://felgo.com/search-results?q=
set searchurls.o https://www.office.com/search?auth=2&q= set searchurls.o https://www.office.com/search?auth=2&q=
set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/ set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/
@ -41,8 +41,9 @@ set searchengine ser
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl " For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
" vim: set filetype=tridactyl " vim: set filetype=tridactyl
bind v hint -W mpvsafe bind v hint -W mpvsafe
bind F hint -w
bind gy hint -y
bind gc composite get_current_url | org-capture bind gc composite get_current_url | org-capture
bind gC hint -W org-capture bind gC hint -W org-capture
command org-capture js -p tri.excmds.exclaim_quiet('org-capture ' + JS_ARG) command org-capture js -p tri.excmds.exclaim_quiet('org-capture ' + JS_ARG)