Compare commits

..

No commits in common. "main" and "68ad4339e7a5da9e875c2120ed2240765abf8c34" have entirely different histories.

18 changed files with 86 additions and 500 deletions

View file

@ -1,4 +1,4 @@
shadow-opacity = 1;
shadow-opacity = 0.8;
shadow = true;
shadow-radius = 0;

View file

@ -2,10 +2,6 @@
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
math.randomseed(os.time())
randomwidth=math.random(1280, 1440)
randomheight=math.random(750, 850)
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
@ -114,8 +110,8 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
-- package.path = package.path .. ';/usr/lib/python3.8/site-packages/powerline/bindings/awesome/?.lua'
-- require('powerline')
package.path = package.path .. ';/usr/lib/python3.8/site-packages/powerline/bindings/awesome/?.lua'
require('powerline')
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
@ -231,9 +227,9 @@ awful.screen.connect_for_each_screen(function(s)
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
-- powerline_widget,
powerline_widget,
wibox.widget.systray(),
mytextclock,
-- mytextclock,
s.mylayoutbox,
},
}
@ -321,15 +317,12 @@ globalkeys = gears.table.join(
i = i + 1
end
if not found then
awful.spawn(terminal_tmux, {size_hints_honor = false,
placement = awful.placement.maximize_horizontal
+ awful.placement.no_offscreen
+ awful.placement.bottom_left})
awful.spawn(terminal_tmux)
end
end, {description = "open a terminal", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Control" }, "q", awesome.quit,
awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
@ -355,31 +348,28 @@ globalkeys = gears.table.join(
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "p",
function () awful.spawn({"pqiv", "-c", "-c", "-i", "/home/x/ANNOTATIONS"}) end,
{description = "annotate", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "o",
function () awful.spawn({"/home/x/.scripts/screenshot.sh"}) end,
{description = "screenshot", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "g",
function () awful.spawn({"/home/x/.scripts/grabscreen.sh"}) end,
{description = "grab screen region", group = "user"}),
awful.key({ modkey, "Shift" }, "q",
function () awful.spawn({"killall", "ffmpeg"}) end,
{description = "killall ffmpeg", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "r",
function () awful.spawn({"/home/x/.scripts/screenrec.sh"}) end,
{description = "record screen region", group = "user"}),
awful.key({ modkey, "Shift" }, "e",
function () awful.spawn({"/home/x/.scripts/screenrecHQ.sh"}) end,
{description = "record screen region HQ", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "w",
function () awful.spawn({"/usr/bin/killall", "ffmpeg"}) end,
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "b",
function () awful.spawn({"/home/x/.scripts/screencut.sh"}) end,
{description = "cut screen", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "t",
function () awful.spawn({"/home/x/.scripts/incop.sh"}) end,
{description = "increase urxvt opacity", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Control", "Shift" }, "t",
function () awful.spawn({"/home/x/.scripts/decop.sh"}) end,
{description = "decrease urxvt opacity", group = "user"}),
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Control" }, "n",
function ()
@ -468,11 +458,6 @@ clientkeys = gears.table.join(
function (c)
c.maximized = not c.maximized
c:raise()
if c.maximized then
c.border_width = 0
else
c.border_width = 2
end
end ,
{description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m",
@ -619,28 +604,14 @@ awful.rules.rules = {
},
-- Set Firefox to always map on the tag named "2" on screen 1.
{ rule = { class = "Firefox" },
properties = { floating=true, width=randomwidth, height=randomheight, placement=awful.placement.centered} },
{ rule = { class = "Telegram" },
properties = { screen = 1, tag = "9" } },
{ rule = { class = "Microsoft Teams - Preview" },
properties = { screen = 1, tag = "8" } },
{ rule = { class = "org-antlr-v4-gui-TestRig" },
properties = { maximized = true } },
{ rule = { class = "wbar" },
properties = {border_width = 0} },
{ rule = { class = "ffplay" },
properties = {border_width = 0, floating = true, ontop = true} },
{ rule = { class = "xterm" },
properties = {border_width = 0, floating = true} },
{ rule = { class = "URxvt" },
properties = {width = 1436, border_width = 2, floating = true, ontop = true} },
properties = {maximized_horizontal = true, floating = false, ontop = true} },
{ rule = { class = "Pqiv" },
properties = {border_width = 0, floating = true, ontop = true} },
{ rule = { class = "Client_gui" },
properties = {floating = true, focus=false, ontop = true} },
{ rule = { class = "Server_gui" },
properties = {floating = true, focus=false, ontop = true} },
}
-- }}}
@ -706,51 +677,24 @@ end)
--client.connect_signal("mouse::enter", function(c)
-- c:emit_signal("request::activate", "mouse_enter", {raise = false})
--end)
--
client.connect_signal("mouse::enter", function(c)
if c.class == "qpdfview" then
-- disable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "0"})
end
end)
client.connect_signal("mouse::leave", function(c)
if c.class == "qpdfview" then
-- enable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "1"})
client.connect_signal("focus",
function(c)
c.border_color = beautiful.border_focus
end
end)
client.connect_signal("focus", function(c)
c.border_color = beautiful.border_focus
-- keep focus on URxvt, if it's ontop
if c.class ~= "URxvt" and c.class ~= "Pqiv" then
local t = awful.screen.focused().selected_tag
local clients = t:clients()
for i = 1, table.maxn(clients), 1 do
if not clients[i].minimized and clients[i].ontop and clients[i].class == "URxvt" then
clients[i]:raise()
clients[i]:emit_signal("request::activate")
-- keep focus on URxvt, if it's ontop
if c.class ~= "URxvt" and c.class ~= "Pqiv"then
local t = awful.screen.focused().selected_tag
local clients = t:clients()
for i = 1, table.maxn(clients), 1 do
if not clients[i].minimized and clients[i].ontop and clients[i].class == "URxvt" then
clients[i]:raise()
clients[i]:emit_signal("request::activate")
end
end
end
if c.class == "qpdfview" then
-- disable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "0"})
end
end
end)
client.connect_signal("unfocus", function(c)
c.border_color = beautiful.border_normal
if c.class == "qpdfview" then
-- enable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "1"})
end
end)
end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
-- Autorun programs
@ -780,23 +724,13 @@ local function bat_notification()
local bat_capacity = tonumber(f_capacity:read("*all"))
local bat_status = trim(f_status:read("*all"))
-- if (bat_status == "Discharging") then
-- -- awful.spawn({"/home/x/.scripts/alarm.sh"})
-- naughty.notify({ title = "Battery Warning"
-- , text = "Discharging! " .. bat_capacity .."%" .. " left!"
-- , bg="#0000ff"
-- , fg="#000000"
-- , timeout = 120
-- , position = "top_right"
-- })
-- else
if (bat_capacity <= 30 and bat_status == "Discharging") then
naughty.notify({ title = "Battery Warning"
, text = "Battery low! " .. bat_capacity .."%" .. " left!"
, bg="#ff0000"
, fg="#000000"
, timeout = 120
, timeout = 15
, position = "top_right"
})
end

View file

@ -94,7 +94,7 @@ set passwd=
set pl_sort=
set play_library=true
set play_sorted=false
set repeat=true
set repeat=false
set repeat_current=false
set replaygain=disabled
set replaygain_limit=true
@ -115,7 +115,7 @@ set softvol=false
set softvol_state=0 0
set start_view=tree
set status_display_program=
set stop_after_queue=true
set stop_after_queue=false
set time_show_leading_zero=true
set tree_width_max=0
set tree_width_percent=33

View file

@ -5,12 +5,12 @@ AutoSaveOnExit=true
AutoTypeEntryTitleMatch=true
AutoTypeEntryURLMatch=true
BackupBeforeSave=true
ConfigVersion=2
ConfigVersion=1
DropToBackgroundOnCopy=false
FaviconDownloadTimeout=10
HideWindowOnCopy=false
IgnoreGroupExpansion=true
MinimizeAfterUnlock=false
MinimizeAfterUnlock=true
MinimizeOnCopy=true
MinimizeOnOpenUrl=false
OpenPreviousDatabasesOnStartup=true
@ -40,7 +40,7 @@ UpdateBinaryPath=true
UseCustomProxy=false
[FdoSecrets]
Enabled=true
Enabled=false
NoConfirmDeleteItem=false
ShowNotification=true
@ -53,7 +53,7 @@ HideToolbar=false
HideUsernames=false
Language=system
MinimizeOnClose=true
MinimizeOnStartup=true
MinimizeOnStartup=false
MinimizeToTray=true
MonospaceNotes=false
MovableToolbar=false
@ -64,7 +64,7 @@ TrayIconAppearance=monochrome-light
[PasswordGenerator]
AdditionalChars=
ExcludedChars=
Length=25
Length=30
SpecialChars=false
WordCase=1

View file

@ -5,4 +5,4 @@ ignorePaperColor=false
overprintPreview=false
textAntialiasing=true
textHinting=1
thinLineMode=1
thinLineMode=0

View file

@ -7,19 +7,19 @@ highlightAll=true
highlightCurrentThumbnail=true
highlightDuration=5000
invertColors=false
layoutMode=1
layoutMode=0
limitThumbnailsToResults=true
matchCase=false
minimalScrolling=false
minimalScrolling=true
openUrl=true
pageSpacing=5
pageSpacing=0
pagesPerRow=3
parallelSearchExecution=true
prefetch=true
prefetchDistance=10
rotateModifiers=33554432
rotation=0
scaleFactor=1.501036627337572
scaleFactor=0.5800653594771242
scaleMode=1
scrollModifiers=134217728
sourceEditor=
@ -27,7 +27,7 @@ thumbnailSize=150
thumbnailSpacing=3
trimMargins=false
wholeWords=false
zoomFactor=1.1
zoomFactor=1.7
zoomModifiers=67108864
[mainWindow]
@ -40,24 +40,24 @@ exitAfterLastTab=false
extendedSearchDock=true
fileToolBar=openInNewTab, refresh
fontsDialogSize=@Size(278 244)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x2\xcf\0\0\x3\x83\0\0\0\x2\0\0\0\x16\0\0\x2\xcd\0\0\x3\x81\0\0\0\0\0\0\0\0\x5\xa0\0\0\0\x2\0\0\0\x16\0\0\x2\xcd\0\0\x3\x81)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x12\0\0\x5\x9f\0\0\x3\x83\0\0\0\x2\0\0\0\x14\0\0\x5\x9d\0\0\x3\x81\0\0\0\0\0\0\0\0\x5\xa0\0\0\0\x2\0\0\0\x14\0\0\x5\x9d\0\0\x3\x81)
instanceNameInWindowTitle=true
keepRecentlyClosed=false
newTabNextToCurrentTab=true
openPath=/home/x/TEX/M325
openPath=/SHARED/academics/2021/pdf
recentlyClosedCount=5
recentlyUsed=@Invalid()
recentlyUsedCount=10
restoreBookmarks=true
restorePerFileSettings=true
restoreTabs=false
saveDatabaseInterval=60000
saveDatabaseInterval=300000
savePath=/SHARED/academics/2021/M325/endofsemester
scrollableMenus=false
searchableMenus=false
settingsDialogSize=@Size(430 663)
spreadTabs=true
state="@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\x1\x16\0\0\x3l\xfc\x2\0\0\0\x3\xfc\0\0\0\0\0\0\x3l\0\0\0\0\0\xff\xff\xff\xfa\xff\xff\xff\xff\x1\0\0\0\x2\xfb\0\0\0\x1a\0\x62\0o\0o\0k\0m\0\x61\0r\0k\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\xff\xff\xff\xff\0\0\0~\0\xff\xff\xff\xfb\0\0\0\x16\0o\0u\0t\0l\0i\0n\0\x65\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x1\x3\0\0\0|\0\xff\xff\xff\xfb\0\0\0\x1c\0p\0r\0o\0p\0\x65\0r\0t\0i\0\x65\0s\0\x44\0o\0\x63\0k\0\0\0\x1\xb9\0\0\x1\xb3\0\0\0\x91\0\xff\xff\xff\xfb\0\0\0\x1c\0t\0h\0u\0m\0\x62\0n\0\x61\0i\0l\0s\0\x44\0o\0\x63\0k\0\0\0\x1\xb9\0\0\x1\xb3\0\0\0\x91\0\xff\xff\xff\0\0\0\x3\0\0\x2\xcc\0\0\0\xc3\xfc\x1\0\0\0\x1\xfb\0\0\0\x14\0s\0\x65\0\x61\0r\0\x63\0h\0\x44\0o\0\x63\0k\x2\0\0\x2\x9d\0\0\0;\0\0\x2\xcc\0\0\x1\xe\0\0\x2\xcc\0\0\x3l\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x66\0i\0l\0\x65\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0\x65\0\x64\0i\0t\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0v\0i\0\x65\0w\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)"
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\0\xb3\0\0\x2\xea\xfc\x2\0\0\0\x3\xfb\0\0\0\x16\0o\0u\0t\0l\0i\0n\0\x65\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x3n\0\0\0\x8f\0\xff\xff\xff\xfb\0\0\0\x1c\0p\0r\0o\0p\0\x65\0r\0t\0i\0\x65\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x3n\0\0\0\x91\0\xff\xff\xff\xfb\0\0\0\x1c\0t\0h\0u\0m\0\x62\0n\0\x61\0i\0l\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x2\xea\0\0\0\x91\0\xff\xff\xff\0\0\0\x3\0\0\x3\n\0\0\0\xc3\xfc\x1\0\0\0\x2\xfb\0\0\0\x14\0s\0\x65\0\x61\0r\0\x63\0h\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x3\n\0\0\x1\x92\0\xff\xff\xff\xfb\0\0\0\x1a\0\x62\0o\0o\0k\0m\0\x61\0r\0k\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x5\x9c\0\0\0\x91\0\xff\xff\xff\0\0\x5\x9c\0\0\x3n\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x66\0i\0l\0\x65\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0\x65\0\x64\0i\0t\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0v\0i\0\x65\0w\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
styleSheet="\n\n/*-----QWidget-----*/\nQWidget\n{\n\tbackground-color: #232430;\n\tcolor: #EEEEEE;\n\tborder-color: #000000;\n\n}\n\n\n/*-----QLabel-----*/\nQLabel\n{\n\tbackground-color: #232430;\n\tcolor: #c1c1c1;\n\tborder-color: #000000;\n\n}\n\n/*-----QLineEdit-----*/\nQLineEdit\n{\n\tbackground-color: #38394e;\n\tcolor: #c1c1c1;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-color: #4a4c68;\n\n}\n\n\n/*-----QTableView-----*/\nQTableView, \nQHeaderView, \nQTableView::item \n{\n\tbackground-color: #232430;\n\tcolor: #c1c1c1;\n\tborder: none;\n\n}\n\n\nQTableView::item:selected \n{ \n background-color: #41424e;\n color: #c1c1c1;\n\n}\n\n\nQHeaderView::section:horizontal \n{\n background-color: #232430;\n\tborder: 1px solid #37384d;\n\tpadding: 5px;\n\n}\n\n\nQTableView::indicator{\n\tbackground-color: #1d1d28;\n\tborder: 1px solid #37384d;\n\n}\n\n\nQTableView::indicator:checked{\n\timage:url(./ressources/check.png); /*To replace*/\n\tbackground-color: #1d1d28;\n\n}\n\n/*-----QTreeWidget-----*/\nQTreeView\n{\n\tshow-decoration-selected: 0;\n\talternate-background-color: transparent;\n\tbackground-color: transparent;\n \tborder: none;\n\tcolor: #fff;\n\tfont: 8pt;\n\n}\n\n\nQTreeView::item:selected\n{\n\tcolor:#fff;\n\tbackground-color: #1d1d28;\n\tborder-radius: 0px;\n\n}\n\n\nQTreeView::item:!selected:hover\n{\n background-color: #56576c;\n border: none;\n color: white;\n\n}\n\n/*-----QTabWidget-----*/\nQTabWidget::pane \n{ \n border: none;\n\n}\n\nQTabWidget::tab-bar \n{\n left: 5px; \n\n}\n\nQTabBar::tab \n{\n color: #c1c1c1;\n min-width: 1px;\n\tpadding-left: 25px;\n\tmargin-left:-22px;\n height: 28px;\n\tborder: none;\n\n}\n\nQTabBar::tab:selected \n{\n color: #ffffff;\n height: 28px;\n}\n\nQTabBar::tab:!first \n{\n margin-left: -20px;\n\n}\n\nQTabBar::tab:hover \n{\n color: #DDD;\n\n}\n\nQMenu::item\n{\n padding: 2px 10px 2px 10px;\n\n}\n\nQMenu::item:selected\n{\n background-color: #56576c;\n\tcolor: #fff;\n\n}\n\nQMenu::item:disabled\n{\n color: #555;\n background-color: transparent;\n padding: 2px 20px 2px 20px;\n\n}\n\n/*-----QTableView & QTableWidget-----*/\nQTableView\n{\n background-color: #202030;\n border: 1px solid #32414B;\n color: #f0f0f0;\n gridline-color: #8faaff;\n outline : 0;\n\n}\n\n\n/*-----QScrollBar-----*/\nQScrollBar:horizontal \n{\n background-color: transparent;\n height: 8px;\n margin: 0px;\n padding: 0px;\n\n}\n\n\nQScrollBar::handle:horizontal \n{\n border: none;\n\tmin-width: 100px;\n background-color: #56576c;\n\n}\n\n\nQScrollBar::add-line:horizontal, \nQScrollBar::sub-line:horizontal,\nQScrollBar::add-page:horizontal, \nQScrollBar::sub-page:horizontal \n{\n width: 0px;\n background-color: transparent;\n\n}\n\n\nQScrollBar:vertical \n{\n background-color: transparent;\n width: 8px;\n margin: 0;\n\n}\n\n\nQScrollBar::handle:vertical \n{\n border: none;\n\tmin-height: 100px;\n background-color: #56576c;\n\n}\n\n\nQScrollBar::add-line:vertical, \nQScrollBar::sub-line:vertical,\nQScrollBar::add-page:vertical, \nQScrollBar::sub-page:vertical \n{\n height: 0px;\n background-color: transparent;\n\n}\n"
synchronizeOutlineView=false
synchronizeSplitViews=false
@ -71,16 +71,16 @@ viewToolBar=scaleFactor, zoomIn, zoomOut
[pageItem]
addAnnotationModifiers=67108864
annotationColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\xff\xff\0\0)
annotationColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\0\0\0\0)
annotationOverlay=false
backgroundColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xf\xf\0\0)
backgroundColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
cacheSize=262144K
copyToClipboardModifiers=33554432
decorateFormFields=false
decorateLinks=false
decoratePages=false
decoratePages=true
formFieldOverlay=true
highlightColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\xff\xff\0\0)
highlightColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
keepObsoletePixmaps=false
openInSourceEditorModifiers=0
paperColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xf0\xf0\0\0)

View file

@ -1,237 +0,0 @@
/*-----QWidget-----*/
QWidget
{
background-color: #232430;
color: #EEEEEE;
border-color: #000000;
}
/*-----QLabel-----*/
QLabel
{
background-color: #232430;
color: #c1c1c1;
border-color: #000000;
}
/*-----QLineEdit-----*/
QLineEdit
{
background-color: #38394e;
color: #c1c1c1;
border-style: solid;
border-width: 1px;
border-color: #4a4c68;
}
/*-----QTableView-----*/
QTableView,
QHeaderView,
QTableView::item
{
background-color: #232430;
color: #c1c1c1;
border: none;
}
QTableView::item:selected
{
background-color: #41424e;
color: #c1c1c1;
}
QHeaderView::section:horizontal
{
background-color: #232430;
border: 1px solid #37384d;
padding: 5px;
}
QTableView::indicator{
background-color: #1d1d28;
border: 1px solid #37384d;
}
QTableView::indicator:checked{
image:url("./ressources/check.png"); /*To replace*/
background-color: #1d1d28;
}
/*-----QTreeWidget-----*/
QTreeView
{
show-decoration-selected: 0;
alternate-background-color: transparent;
background-color: transparent;
border: none;
color: #fff;
font: 8pt;
}
QTreeView::item:selected
{
color:#fff;
background-color: #1d1d28;
border-radius: 0px;
}
QTreeView::item:!selected:hover
{
background-color: #56576c;
border: none;
color: white;
}
/*-----QTabWidget-----*/
QTabWidget::pane
{
border: none;
}
QTabWidget::tab-bar
{
left: 5px;
}
QTabBar::tab
{
color: #c1c1c1;
min-width: 1px;
padding-left: 25px;
margin-left:-22px;
height: 28px;
border: none;
}
QTabBar::tab:selected
{
color: #ffffff;
height: 28px;
}
QTabBar::tab:!first
{
margin-left: -20px;
}
QTabBar::tab:hover
{
color: #DDD;
}
QMenu::item
{
padding: 2px 10px 2px 10px;
}
QMenu::item:selected
{
background-color: #56576c;
color: #fff;
}
QMenu::item:disabled
{
color: #555;
background-color: transparent;
padding: 2px 20px 2px 20px;
}
/*-----QTableView & QTableWidget-----*/
QTableView
{
background-color: #202030;
border: 1px solid #32414B;
color: #f0f0f0;
gridline-color: #8faaff;
outline : 0;
}
/*-----QScrollBar-----*/
QScrollBar:horizontal
{
background-color: transparent;
height: 8px;
margin: 0px;
padding: 0px;
}
QScrollBar::handle:horizontal
{
border: none;
min-width: 100px;
background-color: #56576c;
}
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal,
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal
{
width: 0px;
background-color: transparent;
}
QScrollBar:vertical
{
background-color: transparent;
width: 8px;
margin: 0;
}
QScrollBar::handle:vertical
{
border: none;
min-height: 100px;
background-color: #56576c;
}
QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical
{
height: 0px;
background-color: transparent;
}

View file

@ -1,53 +0,0 @@
/*-----QScrollBar-----*/
QScrollBar:horizontal
{
background-color: transparent;
height: 8px;
margin: 0px;
padding: 0px;
}
QScrollBar::handle:horizontal
{
border: none;
min-width: 100px;
background-color: #56576c;
}
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal,
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal
{
width: 0px;
background-color: transparent;
}
QScrollBar:vertical
{
background-color: transparent;
width: 8px;
margin: 0;
}
QScrollBar::handle:vertical
{
border: none;
min-height: 100px;
background-color: #56576c;
}
QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical
{
height: 0px;
background-color: transparent;
}

View file

@ -175,7 +175,7 @@ filextype *.tex vimtex %f &> /dev/null &
filextype *.jpg.gpg gpg -qd %f | imv -
" Pdf
filextype *.pdf okular %f &> /dev/null &, qpdfview %f &> /dev/null &, zathura %c %i &, apvlv %c, xpdf %c
filextype *.pdf qpdfview %f &> /dev/null &, zathura %c %i &, apvlv %c, xpdf %c
fileviewer *.pdf pdftotext -nopgbrk %c -
" Xournal
@ -231,8 +231,8 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
filextype *.html,*.htm
\ {Open with dwb}
\ dwb %f %i &,
\ {Open with vivaldi}
\ vivaldi %f &> /dev/null &,
\ {Open with firefox}
\ firefox %f &,
\ {Open with uzbl}
\ uzbl-browser %f %i &,
filetype *.html,*.htm links, lynx
@ -350,8 +350,7 @@ filetype *.7z
fileviewer *.7z 7z l %c
" Office files
filextype *.odt,*.doc,*.docx,*.abw,*.zabw,*.zabw.gz abiword %f &> /dev/null &
filextype *.xls,*.xlsx,*.odp,*.pptx libreoffice %f &> /dev/null &
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f &
fileviewer *.doc catdoc %c
fileviewer *.docx, docx2txt.pl %f -
@ -420,10 +419,7 @@ set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
" ------------------------------------------------------------------------------
nnoremap b :bmarks<cr>
" Sample mappings
"
" Start shell in current directory
nnoremap s :shell<cr>

View file

@ -1 +0,0 @@
$clean_ext = "%R.run.xml bbl";

View file

@ -1,3 +1,2 @@
[Default Applications]
text/plain=vi.desktop
text/markdown=typora.desktop

12
.muttrc
View file

@ -55,9 +55,6 @@ color markers brightred default
color message white default
color search brightwhite magenta
color bold brightyellow default
color index red default ~D
color index cyan default ~T
# if you don't like the black progress bar at the bottom of the screen,
# comment out the following line
#color progress white black
@ -95,12 +92,3 @@ set header_cache="~/MAIL/mutthcache/"
source ~/local_muttrc.mailboxes
source ~/MAIL/muttrc.aliases
alias zurab \"Janelidze, Z, Prof [zurab@sun.ac.za]\" <zurab@sun.ac.za>
alias 21680809 \"Rey, JM, Mej [21680809@sun.ac.za]\" <21680809@sun.ac.za>
alias mwild \"Wild, Marcel, Prof [mwild@sun.ac.za]\" <mwild@sun.ac.za>
alias smo \"Mouton, S, Prof [smo@sun.ac.za]\" <smo@sun.ac.za>
alias bfischer Bernd Fischer <bfischer@sun.ac.za>
alias intpreregistration \"intpreregistration@sun.ac.za\" <intpreregistration@sun.ac.za>
alias hproding \"Prodinger, Helmut [hproding@sun.ac.za]\" <hproding@sun.ac.za>
alias tammya \"Abrahams, T, Mrs [tammya@sun.ac.za]\" <tammya@sun.ac.za>
alias djbasson \"Basson, DJ, Dr [djbasson@sun.ac.za]\" <djbasson@sun.ac.za>

View file

@ -6,7 +6,6 @@ macro y set browser "~/.newsboat/scripts/enq.sh %u"; open-in-browser ; set brows
# general settings
auto-reload yes
max-items 100
download-timeout 120
# unbind keys
unbind-key ENTER

View file

@ -10,9 +10,8 @@ exec fbsetroot -solid black
exec xrdb ~/.Xresources
#exec /usr/lib64/xfce4/notifyd/xfce4-notifyd
exec dunst
#exec redshift -l -18:33
exec redshift -l -18:33
exec unclutter -idle 5 -jitter 20
exec dispad
#exec /usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333"
#exec /usr/bin/xinput set-button-map 11 1 2 3 5 4 7 6

View file

@ -3,7 +3,4 @@
def division(dividend, divisor):
return (dividend._maxima_().divide(divisor).sage())
from sage.misc.viewer import viewer
viewer.png_viewer("imv")
#for pole in (1/f == 0).solve(z):f(z).maxima_methods().residue(z,pole.rhs())

View file

@ -5,8 +5,6 @@ killall xbattbar
killall pasystray
killall compton
#wbar &
wbar &
pasystray &
keepassxc &
compton &
/usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333" &

View file

@ -181,7 +181,7 @@ set -g @resurrect-strategy-vim 'session'
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
#bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
#bind-key m switchc -t 'mail'
#bind-key M switchc -t 'cmus'

81
.vimrc
View file

@ -23,28 +23,19 @@ set cindent
set history=1000
set showcmd
set incsearch
set nowrap
set spell
set ruler
set wrap
set breakindent
set showbreak=----->
set linebreak
set listchars=eol,tab:>·,trail:~,extends:>,precedes:<,space:␣
set textwidth=80
set tags=./tags,./TAGS,tags,TAGS
"set textwidth=80
"set linebreak
set nojoinspaces
set nrformats+=alpha
autocmd BufNewFile,BufRead *.sage set syntax=python
autocmd FileType haskell set expandtab
autocmd FileType haskell set nospell
"autocmd FileType haskell set formatprg=brittany
"escape codes for italics
set t_ZH=
set t_ZR=
@ -142,9 +133,6 @@ nmap <silent> <C-\> :cs find s <C-R>=expand("<cword>")<CR><CR>1<CR><CR>
nmap <silent> <C-_> :lcs find c <C-R>=expand("<cword>")<CR><CR>
set cscopequickfix=c+
"nmap <F6> :let @+=system("sage -c \"t=var('t');s=var('s');u=var('u');v=var('v');w=var('w');x=var('x');y=var('y');z=var('z');print(latex(".getline('.')."))\"")<CR>j
nmap <F6> :let @+=system("sage -c \"R.<t,z> = PowerSeriesRing(ZZ);print(latex(".getline('.')."))\"")<CR>j
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""" PLUGIN SPECIFIC """""""""""""""""""""""""""""""
runtime ftplugin/man.vim
@ -183,12 +171,7 @@ let g:syntastic_java_checkstyle_conf_file = '~/.checkstyle/checkstyle.xml'
let g:syntastic_tex_chktex_args = "-l ~/.chktexrc"
let g:syntastic_tex_lacheck_quiet_messages = {"regex": ['.*unmatched.*',
\ 'bad character in label.*', 'Do not use @ in LaTeX macro names.']}
let g:syntastic_tex_chktex_quiet_messages =
\ {"regex": ["`)' expected, found `}'",
\ "`}' expected, found `)'"]}
let g:syntastic_java_checkstyle_quiet_messages = {"regex": ['Missing a Javadoc comment.']}
\ 'bad character in label.*']}
map <C-h><C-h> :lprev<CR>
map <C-j><C-j> :lnext<CR>
@ -216,7 +199,7 @@ nmap <C-c><C-p> :call REPLsettings("")<CR>
"""""""""""""""""""""""""""""""""""" DIFFCHAR """"""""""""""""""""""""""""""""""
"https://github.com/rickhowe/diffchar.vim.git
let g:DiffUnit="Char"
let g:DiggUnit="Char"
"""""""""""""""""""""""""""""""""" LATEX SUITE """""""""""""""""""""""""""""""""
"https://github.com/vim-latex/vim-latex
@ -225,42 +208,35 @@ set grepprg=grep\ -nH\ $*
set modelineexpr
"let g:Tex_DefaultTargetFormat = "pdf"
"let g:Tex_ViewRule_pdf = "qpdfview"
"let g:Tex_CompileRule_pdf = "latexmk -pdf -shell-escape -synctex=1 $*"
""let g:Tex_ViewRule_pdf = "zathura"
"
"let g:tex_flavor='latex'
"let g:Tex_GotoError=0
"let g:tex_comment_nospell=1
let g:Tex_DefaultTargetFormat = "pdf"
let g:Tex_ViewRule_pdf = "qpdfview"
let g:Tex_CompileRule_pdf = "latexmk -pdf -shell-escape -synctex=1 $*"
"let g:Tex_ViewRule_pdf = "zathura"
"autocmd BufNewFile,BufRead *.tex syntax sync fromstart
let g:tex_flavor='latex'
let g:Tex_GotoError=0
let g:tex_comment_nospell=1
autocmd BufNewFile,BufRead *.tex syntax sync fromstart
autocmd BufNewFile,BufRead *.tex set spelllang=en_gb spell
autocmd BufNewFile,BufRead *.tex syntax match Comment "%.*"
autocmd BufNewFile,BufRead *.tex call TexNewMathZone("M", "align", 1)
autocmd BufNewFile,BufRead *.tex set foldtext=FoldText()
autocmd BufNewFile,BufRead *.tex set textwidth=80
autocmd BufNewFile,BufRead *.tex let g:syntastic_auto_jump = 0
autocmd BufNewFile,BufRead *.tex set expandtab
"imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
"imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
"imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"
"imap <C-l><C-j> <F7>
"imap <C-l><C-i> <Plug>Tex_InsertItemOnThisLine
"imap <C-l><C-l> <Plug>Tex_LeftRight
"imap <C-l><C-x> <Plug>Tex_MathCal
"imap <C-l><C-v> <Plug>Tex_MathBF
imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"map <C-l><C-f> :execute escape(":!qpdfview --quiet --unique $(basename % .tex).pdf $(basename % .tex).pdf#src:%:" . line('.') . ":" . col('.') . " &", '#')<CR><CR>
map <C-l><C-f> :execute escape(":!okular --unique \"$(basename % .tex).pdf#src:" . line('.') . " %\" &> /dev/null &", '#')<CR><CR>
nnoremap <silent> <Leader>ll :!latexmk -pdf -shell-escape -synctex=1 %<CR>
map <C-l><C-f> :execute escape(":!qpdfview --quiet --unique $(basename % .tex).pdf $(basename % .tex).pdf#src:%:" . line('.') . ":" . col('.') . " &", '#')<CR><CR>
""""""""""""""""""""""""""""""""""""" JAVA """""""""""""""""""""""""""""""""""""
autocmd BufNewFile,BufRead *.java set expandtab
autocmd BufNewFile,BufRead *.g4 set expandtab
imap <C-l><C-j> <F7>
imap <C-l><C-i> <Plug>Tex_InsertItemOnThisLine
imap <C-l><C-l> <Plug>Tex_LeftRight
imap <C-l><C-x> <Plug>Tex_MathCal
imap <C-l><C-v> <Plug>Tex_MathBF
""""""""""""""""""""""""""""""" RAINBOW BRACKETS """""""""""""""""""""""""""""""
"https://github.com/luochen1990/rainbow.git
@ -342,12 +318,3 @@ autocmd FileType dart set shiftwidth=2
autocmd FileType dart set tabstop=2
autocmd FileType dart set softtabstop=2
autocmd FileType dart set expandtab
"""""""""""""""""""""""""""""""""""" VIM2HS """"""""""""""""""""""""""""""""""""
"https://github.com/dag/vim2hs
let g:haskell_conceal = 1
"""""""""""""""""""""""""""""""""" NERDTREE """"""""""""""""""""""""""""""""""""
"https://github.com/preservim/nerdtree
map tn :NERDTreeMirror<CR>:NERDTreeFocus<CR>